From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi7sb-0003S2-WF for qemu-devel@nongnu.org; Thu, 08 Sep 2016 18:33:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi7sa-0000oV-3g for qemu-devel@nongnu.org; Thu, 08 Sep 2016 18:33:08 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:32944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi7sZ-0000oL-Tm for qemu-devel@nongnu.org; Thu, 08 Sep 2016 18:33:08 -0400 Received: by mail-wm0-x243.google.com with SMTP id b187so209819wme.0 for ; Thu, 08 Sep 2016 15:33:07 -0700 (PDT) From: Michael Rolnik Date: Fri, 9 Sep 2016 01:32:05 +0300 Message-Id: <1473373930-31547-25-git-send-email-mrolnik@gmail.com> In-Reply-To: <1473373930-31547-1-git-send-email-mrolnik@gmail.com> References: <1473373930-31547-1-git-send-email-mrolnik@gmail.com> Subject: [Qemu-devel] [PATCH RFC v1 24/29] target-arc: NOP, UNIMP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Rolnik Signed-off-by: Michael Rolnik --- target-arc/translate-inst.c | 20 ++++++++++++++++++++ target-arc/translate-inst.h | 2 ++ 2 files changed, 22 insertions(+) diff --git a/target-arc/translate-inst.c b/target-arc/translate-inst.c index 9d0f195..4c4318f 100644 --- a/target-arc/translate-inst.c +++ b/target-arc/translate-inst.c @@ -2678,3 +2678,23 @@ int arc_gen_SLEEP(DisasCtxt *ctx, TCGv src1) return BS_BREAK; } +/* + NOP +*/ +int arc_gen_NOP(DisasCtxt *ctx) +{ + /* literally no operation */ + return BS_NONE; +} + +/* + UNIMP +*/ +int arc_gen_UNIMP(DisasCtxt *ctx) +{ + /* PC = INT_VECTOR_BACE + 0x10 */ + tcg_gen_andi_tl(cpu_pc, cpu_intvec, 0xffffffc0); + tcg_gen_addi_tl(cpu_pc, cpu_pc, 0x10); + + return BS_EXCP; +} diff --git a/target-arc/translate-inst.h b/target-arc/translate-inst.h index 5794cad..9f88d03 100644 --- a/target-arc/translate-inst.h +++ b/target-arc/translate-inst.h @@ -163,3 +163,5 @@ int arc_gen_SLEEP(DisasCtxt *c, TCGv src1); int arc_gen_BRK(DisasCtxt *c); int arc_gen_FLAG(DisasCtxt *c, TCGv src1); +int arc_gen_NOP(DisasCtxt *c); +int arc_gen_UNIMP(DisasCtxt *c); -- 2.4.9 (Apple Git-60)