mos6522: update counters when timer interrupts are off
commit6cf80f90c441e86f2e92c8a07d6b29ca3f1d43e8
authorLaurent Vivier <laurent@vivier.eu>
Mon, 25 Nov 2019 14:14:14 +0000 (25 15:14 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 25 Nov 2019 23:11:50 +0000 (26 10:11 +1100)
treea6e3485788a5591e579a25da904f7e9d4a4bf0bb
parentb14848f5d757cbe89dfd1ee68ce701a8277c2f17
mos6522: update counters when timer interrupts are off

Even if the interrupts are off, counters must be updated because
they are running anyway and kernel can try to read them
(it's the case with g3beige kernel).

Reported-by: Andrew Randrianasulu <randrianasulu@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20191125141414.5015-1-laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/misc/mos6522.c