loader: Abstract away ref to memory region names
Use the function provided rather than spying on the struct. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c54779f962
commit
401cf7fdc4
|
@ -955,7 +955,7 @@ void do_info_roms(Monitor *mon, const QDict *qdict)
|
||||||
if (rom->mr) {
|
if (rom->mr) {
|
||||||
monitor_printf(mon, "%s"
|
monitor_printf(mon, "%s"
|
||||||
" size=0x%06zx name=\"%s\"\n",
|
" size=0x%06zx name=\"%s\"\n",
|
||||||
rom->mr->name,
|
memory_region_name(rom->mr),
|
||||||
rom->romsize,
|
rom->romsize,
|
||||||
rom->name);
|
rom->name);
|
||||||
} else if (!rom->fw_file) {
|
} else if (!rom->fw_file) {
|
||||||
|
|
Loading…
Reference in a new issue