diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-19 13:23:49 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-19 13:23:49 -0800 |
commit | 8f446fcf676e9cd13cf53d9946f0cae5d29a10ec (patch) | |
tree | 840321d1f6f90fc4b20b94a275a1c94307e18f82 /src/target/armv4_5.h | |
parent | cbc13187c315227c0cf8d85fb0b92d0ba4a10dab (diff) | |
download | riscv-openocd-8f446fcf676e9cd13cf53d9946f0cae5d29a10ec.zip riscv-openocd-8f446fcf676e9cd13cf53d9946f0cae5d29a10ec.tar.gz riscv-openocd-8f446fcf676e9cd13cf53d9946f0cae5d29a10ec.tar.bz2 |
ARM: remove per-register malloc
Just pre-allocate memory for the cached register value.
Shrinks heap overhead; increases locality-of-reference.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/armv4_5.h')
-rw-r--r-- | src/target/armv4_5.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h index 6b1dd76..50af57b 100644 --- a/src/target/armv4_5.h +++ b/src/target/armv4_5.h @@ -143,6 +143,7 @@ struct armv4_5_core_reg enum armv4_5_mode mode; struct target *target; struct arm *armv4_5_common; + uint32_t value; }; struct reg_cache* armv4_5_build_reg_cache(struct target *target, |