Skip to content

Commit e733dfc

Browse files
philmdpm215
authored andcommitted
target/arm: Trace emulated firmware reset call
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
1 parent 436f408 commit e733dfc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

target/arm/cpu.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
#include "target/arm/cpu-qom.h"
5353
#include "target/arm/gtimer.h"
5454

55+
#include "trace.h"
56+
5557
static void arm_cpu_set_pc(CPUState *cs, vaddr value)
5658
{
5759
ARMCPU *cpu = ARM_CPU(cs);
@@ -574,6 +576,8 @@ void arm_emulate_firmware_reset(CPUState *cpustate, int target_el)
574576
bool have_el3 = arm_feature(env, ARM_FEATURE_EL3);
575577
bool have_el2 = arm_feature(env, ARM_FEATURE_EL2);
576578

579+
trace_arm_emulate_firmware_reset(arm_cpu_mp_affinity(cpu), target_el);
580+
577581
/*
578582
* Check we have the EL we're aiming for. If that is the
579583
* highest implemented EL, then cpu_reset has already done

target/arm/trace-events

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ arm_gt_update_irq(int timer, int irqstate) "gt_update_irq: timer %d irqstate %d"
1414
# kvm.c
1515
kvm_arm_fixup_msi_route(uint64_t iova, uint64_t gpa) "MSI iova = 0x%"PRIx64" is translated into 0x%"PRIx64
1616

17+
# cpu.c
18+
arm_emulate_firmware_reset(uint64_t mp_aff, unsigned target_el) "cpu %" PRIu64 " @EL%u"
19+
1720
# arm-powerctl.c
1821
arm_powerctl_set_cpu_on(uint64_t mp_aff, unsigned target_el, const char *mode, uint64_t entry, uint64_t context_id) "cpu %" PRIu64 " (EL %u, %s) @ 0x%" PRIx64 " with R0 = 0x%" PRIx64
1922
arm_powerctl_set_cpu_on_and_reset(uint64_t mp_aff) "cpu %" PRIu64

0 commit comments

Comments
 (0)