From: Johannes Schlatow Date: Mon, 29 Jun 2015 15:45:41 +0000 (+0200) Subject: Fix Cortex-A9 global timer X-Git-Tag: v2.4.0-rc3~7^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=786f9ce20382704249883d7052f6869011d44281;p=thirdparty%2Fqemu.git Fix Cortex-A9 global timer The auto increment bit of the timer control register was wrongly defined. See Cortex-A9 MPcore Technical Reference Manual, Section 4.4.2. Signed-off-by: Johannes Schlatow Signed-off-by: Michael Tokarev --- diff --git a/include/hw/timer/a9gtimer.h b/include/hw/timer/a9gtimer.h index b88c02a6ef0..98d8e0ae53a 100644 --- a/include/hw/timer/a9gtimer.h +++ b/include/hw/timer/a9gtimer.h @@ -37,7 +37,7 @@ #define R_CONTROL_TIMER_ENABLE (1 << 0) #define R_CONTROL_COMP_ENABLE (1 << 1) #define R_CONTROL_IRQ_ENABLE (1 << 2) -#define R_CONTROL_AUTO_INCREMENT (1 << 2) +#define R_CONTROL_AUTO_INCREMENT (1 << 3) #define R_CONTROL_PRESCALER_SHIFT 8 #define R_CONTROL_PRESCALER_LEN 8 #define R_CONTROL_PRESCALER_MASK (((1 << R_CONTROL_PRESCALER_LEN) - 1) << \