summaryrefslogtreecommitdiffstats
path: root/hw/virtex_ml507.c
diff options
context:
space:
mode:
authorPeter A. G. Crosthwaite2012-06-13 06:46:43 +0200
committerEdgar E. Iglesias2012-06-15 13:08:13 +0200
commitabe098e4f93a80b0756c0e8e728bc78c47a91127 (patch)
tree3f2145d259d793c7a9b8678b854c304acd8356a6 /hw/virtex_ml507.c
parentxilinx_timer: added default frequency (diff)
downloadqemu-abe098e4f93a80b0756c0e8e728bc78c47a91127.tar.gz
qemu-abe098e4f93a80b0756c0e8e728bc78c47a91127.tar.xz
qemu-abe098e4f93a80b0756c0e8e728bc78c47a91127.zip
xilinx_timer: changed nr_timers to one_timer_only
The configurable property for this IP in the Xilinx tools is a boolean switch "one-timer-only" that flicks this timer from being dual channel to single. Updated QEMU to work the same way for better match with the IP core and its TRM. Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/virtex_ml507.c')
-rw-r--r--hw/virtex_ml507.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtex_ml507.c b/hw/virtex_ml507.c
index cace86b5e4..79bc0d10ee 100644
--- a/hw/virtex_ml507.c
+++ b/hw/virtex_ml507.c
@@ -229,7 +229,7 @@ static void virtex_init(ram_addr_t ram_size,
serial_hds[0], DEVICE_LITTLE_ENDIAN);
/* 2 timers at irq 2 @ 62 Mhz. */
- xilinx_timer_create(0x83c00000, irq[3], 2, 62 * 1000000);
+ xilinx_timer_create(0x83c00000, irq[3], 0, 62 * 1000000);
if (kernel_filename) {
uint64_t entry, low, high;