diff options
Diffstat (limited to 'hw/arm/digic_boards.c')
-rw-r--r-- | hw/arm/digic_boards.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c index e576646e86..f8ba9e5958 100644 --- a/hw/arm/digic_boards.c +++ b/hw/arm/digic_boards.c @@ -51,9 +51,8 @@ typedef struct DigicBoard { static void digic4_board_setup_ram(DigicBoardState *s, hwaddr ram_size) { - memory_region_init_ram(&s->ram, NULL, "ram", ram_size, &error_abort); + memory_region_allocate_system_memory(&s->ram, NULL, "ram", ram_size); memory_region_add_subregion(get_system_memory(), 0, &s->ram); - vmstate_register_ram_global(&s->ram); } static void digic4_board_init(DigicBoard *board) |