aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/alu.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-05-09 00:21:13 +0000
committerAndrew Cagney <cagney@redhat.com>1997-05-09 00:21:13 +0000
commit9efd3f74128b8c6179269e366227db74c6b7d504 (patch)
tree1d2a1a17f84064d4075f35149967f05562fd049e /sim/tic80/alu.h
parentc3cad878c97ee7804b95d498cb3890e64088b8a8 (diff)
downloadgdb-9efd3f74128b8c6179269e366227db74c6b7d504.zip
gdb-9efd3f74128b8c6179269e366227db74c6b7d504.tar.gz
gdb-9efd3f74128b8c6179269e366227db74c6b7d504.tar.bz2
Update CIA as well as NIA when a 64bit insn is encountered.
Diffstat (limited to 'sim/tic80/alu.h')
-rw-r--r--sim/tic80/alu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/tic80/alu.h b/sim/tic80/alu.h
index 1bb4054..4300723 100644
--- a/sim/tic80/alu.h
+++ b/sim/tic80/alu.h
@@ -56,6 +56,7 @@ do { \
#define long_immediate(VARIABLE) \
unsigned_word VARIABLE = MEM (unsigned, nia.ip, 4); \
+ cia.dp += sizeof (instruction_word); \
nia.ip += sizeof (instruction_word); \
nia.dp += sizeof (instruction_word);