diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-02-28 12:08:18 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-02-28 12:08:18 +0000 |
commit | a5d8235545e98c1ce02560d5f4f57552d937efe9 (patch) | |
tree | 490954428128995e621b0cbec5bbdcd080c32a8a /target/arm/cpu.h | |
parent | a73c98e159d18155445d29b6044be6ad49fd802f (diff) | |
download | qemu-a5d8235545e98c1ce02560d5f4f57552d937efe9.zip qemu-a5d8235545e98c1ce02560d5f4f57552d937efe9.tar.gz qemu-a5d8235545e98c1ce02560d5f4f57552d937efe9.tar.bz2 |
armv7m: Remove unused armv7m_nvic_acknowledge_irq() return value
Having armv7m_nvic_acknowledge_irq() return the new value of
env->v7m.exception and its one caller assign the return value
back to env->v7m.exception is pointless. Just make the return
type void instead.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r-- | target/arm/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 649f237..68ad00c 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1365,7 +1365,7 @@ static inline bool armv7m_nvic_can_take_pending_exception(void *opaque) } #endif void armv7m_nvic_set_pending(void *opaque, int irq); -int armv7m_nvic_acknowledge_irq(void *opaque); +void armv7m_nvic_acknowledge_irq(void *opaque); void armv7m_nvic_complete_irq(void *opaque, int irq); /* Interface for defining coprocessor registers. |