Skip to contentSkip to conversation

mac_newworld: add PMU device

PATCH Programmingkid 1 participant 1 message Jun 13, 2018

lore
Share & tools
lore
#0 lore raw

+static uint64_t mos6522_pmu_read(void *opaque, hwaddr addr, unsigned size) +{

+    PMUState *s = opaque;
+    MOS6522PMUState *mps = &s->mos6522_pmu;
+    MOS6522State *ms = MOS6522(mps);

+
+ addr = (addr >> 9) & 0xf;

This 9 should be replaced with a macro that communicates what this value means.