summaryrefslogtreecommitdiff
path: root/src/dev/x86/cmos.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/x86/cmos.hh')
-rw-r--r--src/dev/x86/cmos.hh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dev/x86/cmos.hh b/src/dev/x86/cmos.hh
index 83d92e721..7957e5304 100644
--- a/src/dev/x86/cmos.hh
+++ b/src/dev/x86/cmos.hh
@@ -71,10 +71,9 @@ class Cmos : public BasicPioDevice
public:
typedef CmosParams Params;
- Cmos(const Params *p) : BasicPioDevice(p), latency(p->pio_latency),
+ Cmos(const Params *p) : BasicPioDevice(p, 2), latency(p->pio_latency),
rtc(this, "rtc", p->time, true, ULL(5000000000), p->int_pin)
{
- pioSize = 2;
memset(regs, 0, numRegs * sizeof(uint8_t));
address = 0;
}