On 09/08/2016 03:32 PM, Michael Rolnik wrote:
+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;
+}

This should be done via an exception, with the pc change done in do_interrupt.


r~

Reply via email to