4.115
Rev | Line | |
---|
[3c0e7f9b] | 1 | From bb7192082be2be0acfda61cd46d2b2c3677f8337 Mon Sep 17 00:00:00 2001 |
---|
| 2 | From: Sebastian Huber <sebastian.huber@embedded-brains.de> |
---|
| 3 | Date: Sat, 24 Mar 2012 19:58:44 +0100 |
---|
| 4 | Subject: [PATCH] target-arm: Fix system_clock_scale initial value |
---|
| 5 | |
---|
| 6 | This variable should be initilized somewhere. This default value avoids |
---|
| 7 | a division by zero. |
---|
| 8 | |
---|
| 9 | Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de> |
---|
| 10 | --- |
---|
| 11 | hw/armv7m_nvic.c | 2 +- |
---|
| 12 | 1 files changed, 1 insertions(+), 1 deletions(-) |
---|
| 13 | |
---|
| 14 | diff --git a/hw/armv7m_nvic.c b/hw/armv7m_nvic.c |
---|
| 15 | index 65b575e..b3a1b3d 100644 |
---|
| 16 | --- a/hw/armv7m_nvic.c |
---|
| 17 | +++ b/hw/armv7m_nvic.c |
---|
| 18 | @@ -51,7 +51,7 @@ typedef struct { |
---|
| 19 | #define SYSTICK_CLKSOURCE (1 << 2) |
---|
| 20 | #define SYSTICK_COUNTFLAG (1 << 16) |
---|
| 21 | |
---|
| 22 | -int system_clock_scale; |
---|
| 23 | +int system_clock_scale = SYSTICK_SCALE; |
---|
| 24 | |
---|
| 25 | /* Conversion factor from qemu timer to SysTick frequencies. */ |
---|
| 26 | static inline int64_t systick_scale(nvic_state *s) |
---|
| 27 | -- |
---|
| 28 | 1.7.1 |
---|
| 29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.