target/avr: Add defines for i/o port registers

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2025-03-25 08:58:56 -07:00
parent 29bcd5a46a
commit a2860ff908
2 changed files with 28 additions and 18 deletions

View file

@ -47,6 +47,16 @@
/* Number of IO registers accessible by ld/st/in/out */
#define NUMBER_OF_IO_REGISTERS 64
/* CPU registers mapped into i/o ports 0x38-0x3f. */
#define REG_38_RAMPD 0
#define REG_38_RAMPX 1
#define REG_38_RAMPY 2
#define REG_38_RAMPZ 3
#define REG_38_EIDN 4
#define REG_38_SPL 5
#define REG_38_SPH 6
#define REG_38_SREG 7
/*
* Offsets of AVR memory regions in host memory space.
*