about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2020-02-19 15:55:02 +0100
committerGitHub <noreply@github.com>2020-02-19 15:55:02 +0100
commit5ee76eed19b62983909d6a16966acc15b2c8726f (patch)
tree630db6ef3bfc52f3e6d6d0730c58eb2a74f68444
parent46bcedfe3103c620af73a066c381ba0843106d01 (diff)
parent1297188fcaf80b84b46634b6b35248a415a0fa83 (diff)
downloadmiasm-5ee76eed19b62983909d6a16966acc15b2c8726f.tar.gz
miasm-5ee76eed19b62983909d6a16966acc15b2c8726f.zip
Merge pull request #1140 from 6oclock/msp430_sr_subregisters_offsets
Modification of the SR subregisters offsets
-rw-r--r--miasm/jitter/arch/JitCore_msp430.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/miasm/jitter/arch/JitCore_msp430.c b/miasm/jitter/arch/JitCore_msp430.c
index 2bb51c68..86e082ad 100644
--- a/miasm/jitter/arch/JitCore_msp430.c
+++ b/miasm/jitter/arch/JitCore_msp430.c
@@ -33,12 +33,12 @@ reg_dict gpreg_dict[] = { {.name = "PC", .offset = offsetof(struct vm_cpu, PC)},
 			  {.name = "of", .offset = offsetof(struct vm_cpu, of)},
 			  {.name = "cf", .offset = offsetof(struct vm_cpu, cf)},
 
-			  {.name = "cpuoff", .offset = offsetof(struct vm_cpu, zf)},
-			  {.name = "gie", .offset = offsetof(struct vm_cpu, zf)},
-			  {.name = "osc", .offset = offsetof(struct vm_cpu, zf)},
-			  {.name = "scg0", .offset = offsetof(struct vm_cpu, zf)},
-			  {.name = "scg1", .offset = offsetof(struct vm_cpu, zf)},
-			  {.name = "res", .offset = offsetof(struct vm_cpu, zf)},
+			  {.name = "cpuoff", .offset = offsetof(struct vm_cpu, cpuoff)},
+			  {.name = "gie", .offset = offsetof(struct vm_cpu, gie)},
+			  {.name = "osc", .offset = offsetof(struct vm_cpu, osc)},
+			  {.name = "scg0", .offset = offsetof(struct vm_cpu, scg0)},
+			  {.name = "scg1", .offset = offsetof(struct vm_cpu, scg1)},
+			  {.name = "res", .offset = offsetof(struct vm_cpu, res)},
 
 };