#include "hw/misc/unimp.h"
#include "hw/registerfields.h"
#include "qom/object.h"
+#include "trace.h"
/* #define DEBUG_BONITO */
#define BONITO_PCICONF_IDSEL_OFFSET 11
#define BONITO_PCICONF_FUN_MASK 0x700 /* [10:8] */
#define BONITO_PCICONF_FUN_OFFSET 8
+#define BONITO_PCICONF_REG_MASK_DS (~3) /* Per datasheet */
#define BONITO_PCICONF_REG_MASK 0xFC
#define BONITO_PCICONF_REG_OFFSET 0
if (pciaddr == 0xffffffff) {
return;
}
+ if (addr & ~BONITO_PCICONF_REG_MASK_DS) {
+ trace_bonito_spciconf_small_access(addr, size);
+ }
/* set the pci address in s->config_reg */
phb->config_reg = (pciaddr) | (1u << 31);
if (pciaddr == 0xffffffff) {
return MAKE_64BIT_MASK(0, size * 8);
}
+ if (addr & ~BONITO_PCICONF_REG_MASK_DS) {
+ trace_bonito_spciconf_small_access(addr, size);
+ }
/* set the pci address in s->config_reg */
phb->config_reg = (pciaddr) | (1u << 31);
# See docs/devel/tracing.rst for syntax documentation.
+# bonito.c
+bonito_spciconf_small_access(uint64_t addr, unsigned size) "PCI config address is smaller then 32-bit, addr: 0x%"PRIx64", size: %u"
+
# grackle.c
grackle_set_irq(int irq_num, int level) "set_irq num %d level %d"