]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commit
hw/avr: Prepare for TARGET_PAGE_SIZE > 256
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 25 Mar 2025 22:26:28 +0000 (15:26 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 22 Apr 2025 21:07:12 +0000 (14:07 -0700)
commit9f99072fc08e1044700404ae0a5f13a30a0a2a60
treea6531c75a82362059a65da7adf881ce3ba04b250
parent95d4f72d6a667c71adae8a3c8093efe32043d9b4
hw/avr: Prepare for TARGET_PAGE_SIZE > 256

If i/o does not cover the entire first page, allocate a portion
of ram as an i/o device, so that the entire first page is i/o.

While memory_region_init_ram_device_ptr is happy to allocate
the RAMBlock, it does not register the ram for migration.
Do this by hand.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/avr/atmega.c
hw/avr/atmega.h