mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
hw/misc/empty_slot: Name the slots when created
Directly set the slot name when creating the device, to display the device name in trace events. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Acked-by: Artyom Tarasenko <atar4qemu@gmail.com> Message-Id: <20200510152840.13558-8-f4bug@amsat.org>
This commit is contained in:
parent
6007523a80
commit
28c78fe818
4 changed files with 10 additions and 6 deletions
|
@ -50,7 +50,7 @@ static const MemoryRegionOps empty_slot_ops = {
|
|||
.endianness = DEVICE_NATIVE_ENDIAN,
|
||||
};
|
||||
|
||||
void empty_slot_init(hwaddr addr, uint64_t slot_size)
|
||||
void empty_slot_init(const char *name, hwaddr addr, uint64_t slot_size)
|
||||
{
|
||||
if (slot_size > 0) {
|
||||
/* Only empty slots larger than 0 byte need handling. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue