diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-09-18 13:02:21 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-09-19 10:14:10 +0200 |
| commit | 9922de74bc01932f1bdc4139e6ecc1f17f50d2a7 (patch) | |
| tree | 49dce3d97157166bf707ad7a291db77d79a530a4 /miasm2/jitter/arch/JitCore_arm.c | |
| parent | 1847269c7ee45a8c5e89b8cd2bc8eb731f55b81e (diff) | |
| download | miasm-9922de74bc01932f1bdc4139e6ecc1f17f50d2a7.tar.gz miasm-9922de74bc01932f1bdc4139e6ecc1f17f50d2a7.zip | |
Jit/Arch: init regs size for all arch
Diffstat (limited to 'miasm2/jitter/arch/JitCore_arm.c')
| -rw-r--r-- | miasm2/jitter/arch/JitCore_arm.c | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/miasm2/jitter/arch/JitCore_arm.c b/miasm2/jitter/arch/JitCore_arm.c index f253c45b..ac7d16bf 100644 --- a/miasm2/jitter/arch/JitCore_arm.c +++ b/miasm2/jitter/arch/JitCore_arm.c @@ -12,35 +12,36 @@ -reg_dict gpreg_dict[] = { {.name = "R0", .offset = offsetof(vm_cpu_t, R0)}, - {.name = "R1", .offset = offsetof(vm_cpu_t, R1)}, - {.name = "R2", .offset = offsetof(vm_cpu_t, R2)}, - {.name = "R3", .offset = offsetof(vm_cpu_t, R3)}, - {.name = "R4", .offset = offsetof(vm_cpu_t, R4)}, - {.name = "R5", .offset = offsetof(vm_cpu_t, R5)}, - {.name = "R6", .offset = offsetof(vm_cpu_t, R6)}, - {.name = "R7", .offset = offsetof(vm_cpu_t, R7)}, - {.name = "R8", .offset = offsetof(vm_cpu_t, R8)}, - {.name = "R9", .offset = offsetof(vm_cpu_t, R9)}, - {.name = "R10", .offset = offsetof(vm_cpu_t, R10)}, - {.name = "R11", .offset = offsetof(vm_cpu_t, R11)}, - {.name = "R12", .offset = offsetof(vm_cpu_t, R12)}, - {.name = "SP", .offset = offsetof(vm_cpu_t, SP)}, - {.name = "LR", .offset = offsetof(vm_cpu_t, LR)}, - {.name = "PC", .offset = offsetof(vm_cpu_t, PC)}, - - {.name = "zf", .offset = offsetof(vm_cpu_t, zf)}, - {.name = "nf", .offset = offsetof(vm_cpu_t, nf)}, - {.name = "of", .offset = offsetof(vm_cpu_t, of)}, - {.name = "cf", .offset = offsetof(vm_cpu_t, cf)}, - - {.name = "ge0", .offset = offsetof(vm_cpu_t, ge0)}, - {.name = "ge1", .offset = offsetof(vm_cpu_t, ge1)}, - {.name = "ge2", .offset = offsetof(vm_cpu_t, ge2)}, - {.name = "ge3", .offset = offsetof(vm_cpu_t, ge3)}, - - {.name = "exception_flags", .offset = offsetof(vm_cpu_t, exception_flags)}, - {.name = "interrupt_num", .offset = offsetof(vm_cpu_t, interrupt_num)}, +reg_dict gpreg_dict[] = { + {.name = "R0", .offset = offsetof(vm_cpu_t, R0), .size = 32}, + {.name = "R1", .offset = offsetof(vm_cpu_t, R1), .size = 32}, + {.name = "R2", .offset = offsetof(vm_cpu_t, R2), .size = 32}, + {.name = "R3", .offset = offsetof(vm_cpu_t, R3), .size = 32}, + {.name = "R4", .offset = offsetof(vm_cpu_t, R4), .size = 32}, + {.name = "R5", .offset = offsetof(vm_cpu_t, R5), .size = 32}, + {.name = "R6", .offset = offsetof(vm_cpu_t, R6), .size = 32}, + {.name = "R7", .offset = offsetof(vm_cpu_t, R7), .size = 32}, + {.name = "R8", .offset = offsetof(vm_cpu_t, R8), .size = 32}, + {.name = "R9", .offset = offsetof(vm_cpu_t, R9), .size = 32}, + {.name = "R10", .offset = offsetof(vm_cpu_t, R10), .size = 32}, + {.name = "R11", .offset = offsetof(vm_cpu_t, R11), .size = 32}, + {.name = "R12", .offset = offsetof(vm_cpu_t, R12), .size = 32}, + {.name = "SP", .offset = offsetof(vm_cpu_t, SP), .size = 32}, + {.name = "LR", .offset = offsetof(vm_cpu_t, LR), .size = 32}, + {.name = "PC", .offset = offsetof(vm_cpu_t, PC), .size = 32}, + + {.name = "zf", .offset = offsetof(vm_cpu_t, zf), .size = 8}, + {.name = "nf", .offset = offsetof(vm_cpu_t, nf), .size = 8}, + {.name = "of", .offset = offsetof(vm_cpu_t, of), .size = 8}, + {.name = "cf", .offset = offsetof(vm_cpu_t, cf), .size = 8}, + + {.name = "ge0", .offset = offsetof(vm_cpu_t, ge0), .size = 8}, + {.name = "ge1", .offset = offsetof(vm_cpu_t, ge1), .size = 8}, + {.name = "ge2", .offset = offsetof(vm_cpu_t, ge2), .size = 8}, + {.name = "ge3", .offset = offsetof(vm_cpu_t, ge3), .size = 8}, + + {.name = "exception_flags", .offset = offsetof(vm_cpu_t, exception_flags), .size = 32}, + {.name = "interrupt_num", .offset = offsetof(vm_cpu_t, interrupt_num), .size = 32}, }; /************************** JitCpu object **************************/ |