qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [PATCH 7/7] mac_newworld: add PMU device


From: Programmingkid
Subject: Re: [Qemu-ppc] [PATCH 7/7] mac_newworld: add PMU device
Date: Wed, 13 Jun 2018 12:22:29 -0400

+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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]