mirror of https://gitee.com/openkylin/qemu.git
hw/intc/bcm2835_ic: Trace GPU/CPU IRQ handlers
Add trace events for GPU and CPU IRQs. Reviewed-by: Luc Michel <luc.michel@greensocs.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20201017180731.1165871-2-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
a0c0c9f8b4
commit
b68a92f4cb
|
@ -18,6 +18,7 @@
|
||||||
#include "migration/vmstate.h"
|
#include "migration/vmstate.h"
|
||||||
#include "qemu/log.h"
|
#include "qemu/log.h"
|
||||||
#include "qemu/module.h"
|
#include "qemu/module.h"
|
||||||
|
#include "trace.h"
|
||||||
|
|
||||||
#define GPU_IRQS 64
|
#define GPU_IRQS 64
|
||||||
#define ARM_IRQS 8
|
#define ARM_IRQS 8
|
||||||
|
@ -51,7 +52,6 @@ static void bcm2835_ic_update(BCM2835ICState *s)
|
||||||
set = (s->gpu_irq_level & s->gpu_irq_enable)
|
set = (s->gpu_irq_level & s->gpu_irq_enable)
|
||||||
|| (s->arm_irq_level & s->arm_irq_enable);
|
|| (s->arm_irq_level & s->arm_irq_enable);
|
||||||
qemu_set_irq(s->irq, set);
|
qemu_set_irq(s->irq, set);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bcm2835_ic_set_gpu_irq(void *opaque, int irq, int level)
|
static void bcm2835_ic_set_gpu_irq(void *opaque, int irq, int level)
|
||||||
|
@ -59,6 +59,7 @@ static void bcm2835_ic_set_gpu_irq(void *opaque, int irq, int level)
|
||||||
BCM2835ICState *s = opaque;
|
BCM2835ICState *s = opaque;
|
||||||
|
|
||||||
assert(irq >= 0 && irq < 64);
|
assert(irq >= 0 && irq < 64);
|
||||||
|
trace_bcm2835_ic_set_gpu_irq(irq, level);
|
||||||
s->gpu_irq_level = deposit64(s->gpu_irq_level, irq, 1, level != 0);
|
s->gpu_irq_level = deposit64(s->gpu_irq_level, irq, 1, level != 0);
|
||||||
bcm2835_ic_update(s);
|
bcm2835_ic_update(s);
|
||||||
}
|
}
|
||||||
|
@ -68,6 +69,7 @@ static void bcm2835_ic_set_arm_irq(void *opaque, int irq, int level)
|
||||||
BCM2835ICState *s = opaque;
|
BCM2835ICState *s = opaque;
|
||||||
|
|
||||||
assert(irq >= 0 && irq < 8);
|
assert(irq >= 0 && irq < 8);
|
||||||
|
trace_bcm2835_ic_set_cpu_irq(irq, level);
|
||||||
s->arm_irq_level = deposit32(s->arm_irq_level, irq, 1, level != 0);
|
s->arm_irq_level = deposit32(s->arm_irq_level, irq, 1, level != 0);
|
||||||
bcm2835_ic_update(s);
|
bcm2835_ic_update(s);
|
||||||
}
|
}
|
||||||
|
|
|
@ -199,3 +199,7 @@ nvic_sysreg_write(uint64_t addr, uint32_t value, unsigned size) "NVIC sysreg wri
|
||||||
heathrow_write(uint64_t addr, unsigned int n, uint64_t value) "0x%"PRIx64" %u: 0x%"PRIx64
|
heathrow_write(uint64_t addr, unsigned int n, uint64_t value) "0x%"PRIx64" %u: 0x%"PRIx64
|
||||||
heathrow_read(uint64_t addr, unsigned int n, uint64_t value) "0x%"PRIx64" %u: 0x%"PRIx64
|
heathrow_read(uint64_t addr, unsigned int n, uint64_t value) "0x%"PRIx64" %u: 0x%"PRIx64
|
||||||
heathrow_set_irq(int num, int level) "set_irq: num=0x%02x level=%d"
|
heathrow_set_irq(int num, int level) "set_irq: num=0x%02x level=%d"
|
||||||
|
|
||||||
|
# bcm2835_ic.c
|
||||||
|
bcm2835_ic_set_gpu_irq(int irq, int level) "GPU irq #%d level %d"
|
||||||
|
bcm2835_ic_set_cpu_irq(int irq, int level) "CPU irq #%d level %d"
|
||||||
|
|
Loading…
Reference in New Issue