gem5/src/dev/arm
Andreas Sandberg d2254e034e dev, arm: Fix multi-core KVM race in the generic timer
The generic timer sometimes needs to access global state. This can
lead to race conditions when simulating a multi-core KVM system where
each core lives in its own thread. In that case, the setMiscReg and
readMiscReg methods are called from the thread owning the CPU and not
the global device thread.

Change-Id: Ie3e982258648c8562cce0b30a0c122dfbfaf42cd
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Gabor Dozsa <gabor.dozsa@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/2460
Reviewed-by: Weiping Liao <weipingliao@google.com>
2017-04-03 16:37:55 +00:00
..
a9scu.cc style: [patch 1/22] use /r/3648/ to reorganize includes 2016-11-09 14:27:37 -06:00
a9scu.hh AddrRange: Transition from Range<T> to AddrRange 2012-09-19 06:15:44 -04:00
abstract_nvm.hh arm, dev: Add a NAND flash timing model 2015-04-23 13:37:49 -04:00
AbstractNVM.py arm, dev: Add a NAND flash timing model 2015-04-23 13:37:49 -04:00
amba_device.cc style: [patch 1/22] use /r/3648/ to reorganize includes 2016-11-09 14:27:37 -06:00
amba_device.hh dev, arm: Include PIO size in AmbaDmaDevice constructor 2015-06-09 09:21:12 -04:00
amba_fake.cc style: [patch 1/22] use /r/3648/ to reorganize includes 2016-11-09 14:27:37 -06:00
amba_fake.hh dev/arm: get rid of AmbaDev namespace 2013-07-11 21:56:39 -05:00
base_gic.cc arm: Wire up the GIC with the platform in the base class 2015-02-16 03:34:18 -05:00
base_gic.hh arm: Add a 'clear PPI' method to gic_pl390 2013-10-17 10:20:45 -05:00
energy_ctrl.cc style: [patch 1/22] use /r/3648/ to reorganize includes 2016-11-09 14:27:37 -06:00
energy_ctrl.hh arm: Add missing explicit overrides for ARM devices 2015-10-23 09:51:11 -04:00
EnergyCtrl.py energy: Memory-mapped Energy Controller component 2014-09-20 17:18:23 -04:00
flash_device.cc style: [patch 3/22] reduce include dependencies in some headers 2016-11-09 14:27:40 -06:00
flash_device.hh arm: Add missing explicit overrides for ARM devices 2015-10-23 09:51:11 -04:00
FlashDevice.py arm, dev: Add a NAND flash timing model 2015-04-23 13:37:49 -04:00
generic_timer.cc dev, arm: Fix multi-core KVM race in the generic timer 2017-04-03 16:37:55 +00:00
generic_timer.hh misc: Remove redundant compiler-specific defines 2015-10-12 04:07:59 -04:00
Gic.py arm: disable GIC extensions 2016-09-22 14:46:37 +01:00
gic_pl390.cc arm: correct register read bug in Pl390 GIC 2017-03-21 10:47:15 +00:00
gic_pl390.hh arm, dev: Add missing override in the Pl390 GIC model 2017-03-15 14:41:40 +00:00
gic_v2m.cc arm: Add a GICv2m device 2015-03-19 04:06:17 -04:00
gic_v2m.hh arm: Add a GICv2m device 2015-03-19 04:06:17 -04:00
gpu_nomali.cc dev, arm: Add a customizable NoMali GPU model 2016-09-06 10:22:38 +01:00
gpu_nomali.hh dev, arm: Add a customizable NoMali GPU model 2016-09-06 10:22:38 +01:00
hdlcd.cc dev, arm: Render HDLCD frames at a fixed rate in KVM 2017-03-07 11:14:28 +00:00
hdlcd.hh dev, arm: Render HDLCD frames at a fixed rate in KVM 2017-03-07 11:14:28 +00:00
kmi.cc arm, kmi: Clear interrupts in KMI devices 2017-03-07 11:14:28 +00:00
kmi.hh arm, kmi: Clear interrupts in KMI devices 2017-03-07 11:14:28 +00:00
NoMali.py dev, arm: Add a customizable NoMali GPU model 2016-09-06 10:22:38 +01:00
pci_host.cc dev, arm: Add support for automatic PCI interrupt routing 2016-01-15 11:30:06 +00:00
pci_host.hh dev, arm: Add support for automatic PCI interrupt routing 2016-01-15 11:30:06 +00:00
pl011.cc style: [patch 1/22] use /r/3648/ to reorganize includes 2016-11-09 14:27:37 -06:00
pl011.hh arm,dev: PL011 UART_FR read status enhancement 2016-05-19 15:19:35 -05:00
pl111.cc style: [patch 1/22] use /r/3648/ to reorganize includes 2016-11-09 14:27:37 -06:00
pl111.hh base: Add support for changing output directories 2015-11-27 14:41:59 +00:00
realview.cc style: [patch 1/22] use /r/3648/ to reorganize includes 2016-11-09 14:27:37 -06:00
realview.hh dev: Rewrite PCI host functionality 2015-12-05 00:11:24 +00:00
RealView.py dev, arm: Render HDLCD frames at a fixed rate in KVM 2017-03-07 11:14:28 +00:00
rtc_pl031.cc style: [patch 1/22] use /r/3648/ to reorganize includes 2016-11-09 14:27:37 -06:00
rtc_pl031.hh arm: Add missing explicit overrides for ARM devices 2015-10-23 09:51:11 -04:00
rv_ctrl.cc sim: Thermal support for Linux 2015-05-13 15:02:25 +01:00
rv_ctrl.hh sim: Thermal support for Linux 2015-05-13 15:02:25 +01:00
SConscript dev, arm: Add support for automatic PCI interrupt routing 2016-01-15 11:30:06 +00:00
timer_cpulocal.cc style: [patch 1/22] use /r/3648/ to reorganize includes 2016-11-09 14:27:37 -06:00
timer_cpulocal.hh arm: Add missing explicit overrides for ARM devices 2015-10-23 09:51:11 -04:00
timer_sp804.cc style: [patch 1/22] use /r/3648/ to reorganize includes 2016-11-09 14:27:37 -06:00
timer_sp804.hh arm: Add missing explicit overrides for ARM devices 2015-10-23 09:51:11 -04:00
ufs_device.cc stats: Fixing regStats function for some SimObjects 2016-06-06 17:16:43 +01:00
ufs_device.hh dev: Move storage devices to src/dev/storage/ 2015-12-10 10:35:23 +00:00
UFSHostDevice.py arm, dev: Add a UFS device 2015-04-23 13:37:50 -04:00
vgic.cc style: [patch 1/22] use /r/3648/ to reorganize includes 2016-11-09 14:27:37 -06:00
vgic.hh arm: Add missing explicit overrides for ARM devices 2015-10-23 09:51:11 -04:00