From 288eba1f80cd8e61d7f3ed80fb610a455f21b5d2 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 14 Apr 2013 03:28:58 -0700 Subject: [PATCH] Fix POP {pc} --- src/isa-thumb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/isa-thumb.c b/src/isa-thumb.c index a880efb62..53b15db38 100644 --- a/src/isa-thumb.c +++ b/src/isa-thumb.c @@ -353,7 +353,8 @@ DEFINE_LOAD_STORE_MULTIPLE_EX_THUMB(POPR, \ , \ cpu->gprs[ARM_PC] = cpu->memory->load32(cpu->memory, address) & 0xFFFFFFFE; \ address += 4;, \ - cpu->gprs[ARM_SP] = address) + cpu->gprs[ARM_SP] = address; \ + THUMB_WRITE_PC;) DEFINE_LOAD_STORE_MULTIPLE_EX_THUMB(PUSH, \ opcode & 0x00FF, \