|
@@ -97,6 +97,7 @@ static void rtas_set_time_of_day(PowerPCCPU *cpu, SpaprMachineState *spapr,
|
|
uint32_t nret, target_ulong rets)
|
|
uint32_t nret, target_ulong rets)
|
|
{
|
|
{
|
|
SpaprRtcState *rtc = &spapr->rtc;
|
|
SpaprRtcState *rtc = &spapr->rtc;
|
|
|
|
+ g_autofree const char *qom_path = NULL;
|
|
struct tm tm;
|
|
struct tm tm;
|
|
time_t new_s;
|
|
time_t new_s;
|
|
int64_t host_ns;
|
|
int64_t host_ns;
|
|
@@ -120,7 +121,8 @@ static void rtas_set_time_of_day(PowerPCCPU *cpu, SpaprMachineState *spapr,
|
|
}
|
|
}
|
|
|
|
|
|
/* Generate a monitor event for the change */
|
|
/* Generate a monitor event for the change */
|
|
- qapi_event_send_rtc_change(qemu_timedate_diff(&tm));
|
|
|
|
|
|
+ qom_path = object_get_canonical_path(OBJECT(rtc));
|
|
|
|
+ qapi_event_send_rtc_change(qemu_timedate_diff(&tm), qom_path);
|
|
|
|
|
|
host_ns = qemu_clock_get_ns(rtc_clock);
|
|
host_ns = qemu_clock_get_ns(rtc_clock);
|
|
|
|
|