mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target/avr: Remove OFFSET_CPU_REGISTERS
This define isn't really used. 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:
@@ -60,8 +60,6 @@
|
||||
#define OFFSET_CODE 0x00000000
|
||||
/* CPU registers, IO registers, and SRAM */
|
||||
#define OFFSET_DATA 0x00800000
|
||||
/* CPU registers specifically, these are mapped at the start of data */
|
||||
#define OFFSET_CPU_REGISTERS OFFSET_DATA
|
||||
/*
|
||||
* IO registers, including status register, stack pointer, and memory
|
||||
* mapped peripherals, mapped just after CPU registers
|
||||
|
||||
+1
-2
@@ -340,8 +340,7 @@ void helper_fullwr(CPUAVRState *env, uint32_t data, uint32_t addr)
|
||||
env->fullacc = false;
|
||||
|
||||
/* Following logic assumes this: */
|
||||
assert(OFFSET_CPU_REGISTERS == OFFSET_DATA);
|
||||
assert(OFFSET_IO_REGISTERS == OFFSET_CPU_REGISTERS +
|
||||
assert(OFFSET_IO_REGISTERS == OFFSET_DATA +
|
||||
NUMBER_OF_CPU_REGISTERS);
|
||||
|
||||
if (addr < NUMBER_OF_CPU_REGISTERS) {
|
||||
|
||||
Reference in New Issue
Block a user