mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
aspeed/wdt: Add trace events
Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
199fd6230c
commit
a8eb9a4333
2 changed files with 9 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "hw/watchdog/wdt_aspeed.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "trace.h"
|
||||
|
||||
#define WDT_STATUS (0x00 / 4)
|
||||
#define WDT_RELOAD_VALUE (0x04 / 4)
|
||||
|
@ -60,6 +61,8 @@ static uint64_t aspeed_wdt_read(void *opaque, hwaddr offset, unsigned size)
|
|||
{
|
||||
AspeedWDTState *s = ASPEED_WDT(opaque);
|
||||
|
||||
trace_aspeed_wdt_read(offset, size);
|
||||
|
||||
offset >>= 2;
|
||||
|
||||
switch (offset) {
|
||||
|
@ -140,6 +143,8 @@ static void aspeed_wdt_write(void *opaque, hwaddr offset, uint64_t data,
|
|||
AspeedWDTClass *awc = ASPEED_WDT_GET_CLASS(s);
|
||||
bool enable;
|
||||
|
||||
trace_aspeed_wdt_write(offset, size, data);
|
||||
|
||||
offset >>= 2;
|
||||
|
||||
switch (offset) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue