diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-06 23:35:01 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2023-02-16 16:00:47 +0000 |
| commit | 8f4e07c9d1e8cf58ab196148e0c179e95f70201e (patch) | |
| tree | 2f32502c1624f2c281b9daa46049e984f0789e7e /target/arm/m_helper.c | |
| parent | 2bd6918f3cfe939c1335f421da2cae0221cf28e5 (diff) | |
| download | focaccia-qemu-8f4e07c9d1e8cf58ab196148e0c179e95f70201e.tar.gz focaccia-qemu-8f4e07c9d1e8cf58ab196148e0c179e95f70201e.zip | |
target/arm: Store CPUARMState::nvic as NVICState*
There is no point in using a void pointer to access the NVIC. Use the real type to avoid casting it while debugging. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20230206223502.25122-11-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/m_helper.c')
| -rw-r--r-- | target/arm/m_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/m_helper.c b/target/arm/m_helper.c index b4964dca8a..25de64c43c 100644 --- a/target/arm/m_helper.c +++ b/target/arm/m_helper.c @@ -1015,7 +1015,7 @@ static void v7m_update_fpccr(CPUARMState *env, uint32_t frameptr, * that we will need later in order to do lazy FP reg stacking. */ bool is_secure = env->v7m.secure; - void *nvic = env->nvic; + NVICState *nvic = env->nvic; /* * Some bits are unbanked and live always in fpccr[M_REG_S]; some bits * are banked and we want to update the bit in the bank for the |