diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-09-07 03:55:32 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-30 19:09:20 +0200 |
commit | f2336b5fbdfcf0aef9a66e4b170648e10faf7a8e (patch) | |
tree | 0861e76c5cd048f69c859642e88bebfea8da6bc3 /hw/char/serial.c | |
parent | 1acb1fe1665b68f226943bbd2919c630b7e0344c (diff) | |
download | qemu-f2336b5fbdfcf0aef9a66e4b170648e10faf7a8e.zip qemu-f2336b5fbdfcf0aef9a66e4b170648e10faf7a8e.tar.gz qemu-f2336b5fbdfcf0aef9a66e4b170648e10faf7a8e.tar.bz2 |
hw/char/serial: Rename I/O read/write trace events
The serial_mm_read/write() handlers from the TYPE_SERIAL_MM device
call the serial_ioport_read/write() handlers with shifted offset.
When looking at the trace events from this MMIO device, it is
confusing to read the accesses as I/O. Simplify using generic
trace event names which make sense the various uses.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200907015535.827885-5-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/char/serial.c')
-rw-r--r-- | hw/char/serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/char/serial.c b/hw/char/serial.c index 26f7fa8..7b5ef87 100644 --- a/hw/char/serial.c +++ b/hw/char/serial.c @@ -333,7 +333,7 @@ static void serial_ioport_write(void *opaque, hwaddr addr, uint64_t val, SerialState *s = opaque; assert(size == 1 && addr < 8); - trace_serial_ioport_write(addr, val); + trace_serial_write(addr, val); switch(addr) { default: case 0: @@ -550,7 +550,7 @@ static uint64_t serial_ioport_read(void *opaque, hwaddr addr, unsigned size) ret = s->scr; break; } - trace_serial_ioport_read(addr, ret); + trace_serial_read(addr, ret); return ret; } |