system: Use &error_abort in memory_region_init_ram_[device_]ptr()
PATCH 1/1 system: Use &error_abort in memory_region_init_ram_[device_]ptr()
If an unexpected error condition happens, we have to abort (&fatal_error is meant for expected errors).
Suggested-by Paolo Bonzini <[email protected]>
Suggested-by Markus Armbruster <[email protected]>
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- system/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
system/memory.c +2 -2
@@ -1692,7 +1692,7 @@ void memory_region_init_ram_ptr(MemoryRegion *mr,/* qemu_ram_alloc_from_ptr cannot fail with ptr != NULL. */ assert (ptr !=NULL ); - mr->ram_block =qemu_ram_alloc_from_ptr (size, ptr, mr, &error_fatal); + mr->ram_block =qemu_ram_alloc_from_ptr (size, ptr, mr, &error_abort); } void memory_region_init_ram_device_ptr(MemoryRegion *mr,
@@ -1711,7 +1711,7 @@ void memory_region_init_ram_device_ptr(MemoryRegion *mr,/* qemu_ram_alloc_from_ptr cannot fail with ptr != NULL. */ assert (ptr !=NULL ); - mr->ram_block =qemu_ram_alloc_from_ptr (size, ptr, mr, &error_fatal); + mr->ram_block =qemu_ram_alloc_from_ptr (size, ptr, mr, &error_abort); } void memory_region_init_alias(MemoryRegion *mr,
Signature · 1 line
2.41.0
Quoted 24 lines · Philippe Mathieu-Daudé
If an unexpected error condition happens, we have to abort (
&fatal_erroris meant for expected errors).Suggested-by Paolo Bonzini <[email protected]>Suggested-by Markus Armbruster <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- system/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)system/memory.c +1
-1@@ -1692,7 +1692,7 @@ void memory_region_init_ram_ptr(MemoryRegion *mr,/* qemu_ram_alloc_from_ptr cannot fail with ptr != NULL. */ assert (ptr !=NULL ); - mr->ram_block =qemu_ram_alloc_from_ptr (size, ptr, mr, &error_fatal); + mr->ram_block =qemu_ram_alloc_from_ptr (size, ptr, mr, &error_abort); } void memory_region_init_ram_device_ptr(MemoryRegion *mr,
system/memory.c void memory_region_init_ram_device_ptr(MemoryRegion *mr, · line 1717
Quoted 8 lines
system/memory.c +1
-1@@ -1711,7 +1711,7 @@ void memory_region_init_ram_device_ptr(MemoryRegion *mr,/* qemu_ram_alloc_from_ptr cannot fail with ptr != NULL. */ assert (ptr !=NULL ); - mr->ram_block =qemu_ram_alloc_from_ptr (size, ptr, mr, &error_fatal); + mr->ram_block =qemu_ram_alloc_from_ptr (size, ptr, mr, &error_abort); } void memory_region_init_alias(MemoryRegion *mr,
Reviewed-by David Hildenbrand <[email protected]>
Signature · 3 lines
Cheers, David / dhildenb
Quoted 6 lines · Philippe Mathieu-Daudé
If an unexpected error condition happens, we have to abort (
&fatal_erroris meant for expected errors).Suggested-by Paolo Bonzini <[email protected]>Suggested-by Markus Armbruster <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Reviewed-by Markus Armbruster <[email protected]>
Paolo Bonzini
AppliedQueued, thanks.
Paolo