]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commitdiff
target/avr: Increase TARGET_PAGE_BITS to 10
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 25 Mar 2025 22:32:50 +0000 (15:32 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 22 Apr 2025 21:07:12 +0000 (14:07 -0700)
Now that we can handle the MCU allocating only a portion of the
first page to i/o, increase the page size.  Choose 10 as larger
than the i/o on every MCU, just so that this path is tested.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/avr/cpu-param.h

index 81f3f49ee1fe0ee67837e3c1dd8e74274e3c1492..f5248ce9e794c4777743480658ae4dbd11e5d467 100644 (file)
 #ifndef AVR_CPU_PARAM_H
 #define AVR_CPU_PARAM_H
 
-/*
- * TARGET_PAGE_BITS cannot be more than 8 bits because
- * 1.  all IO registers occupy [0x0000 .. 0x00ff] address range, and they
- *     should be implemented as a device and not memory
- * 2.  SRAM starts at the address 0x0100
- */
-#define TARGET_PAGE_BITS 8
+#define TARGET_PAGE_BITS 10
 #define TARGET_PHYS_ADDR_SPACE_BITS 24
 #define TARGET_VIRT_ADDR_SPACE_BITS 24