diff options
author | Aurelien Jarno | 2010-04-09 20:52:48 +0200 |
---|---|---|
committer | Aurelien Jarno | 2010-04-19 07:02:53 +0200 |
commit | e4a7d5e88c361040a64a0f298d666a273dc6db85 (patch) | |
tree | 646192ffb20f51e0b9dc29bc48e1e950198a6427 /tcg/arm/tcg-target.h | |
parent | tcg/arm: remove SAVE_LR code (diff) | |
download | qemu-e4a7d5e88c361040a64a0f298d666a273dc6db85.tar.gz qemu-e4a7d5e88c361040a64a0f298d666a273dc6db85.tar.xz qemu-e4a7d5e88c361040a64a0f298d666a273dc6db85.zip |
tcg/arm: explicitely list clobbered/reserved regs
Instead of writing very compact code, declare all registers that are
clobbered or reserved one by one. This makes the code easier to read.
Also declare all the 16 registers to TCG, and mark pc as reserved.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg/arm/tcg-target.h')
-rw-r--r-- | tcg/arm/tcg-target.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index 6d58de81b0..a0027b5781 100644 --- a/tcg/arm/tcg-target.h +++ b/tcg/arm/tcg-target.h @@ -44,9 +44,10 @@ enum { TCG_REG_R12, TCG_REG_R13, TCG_REG_R14, + TCG_REG_PC, }; -#define TCG_TARGET_NB_REGS 15 +#define TCG_TARGET_NB_REGS 16 #define TCG_CT_CONST_ARM 0x100 |