]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
include/hw/intc: Remove ifndef CONFIG_USER_ONLY from armv7m_nvic.h
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 13 Mar 2025 03:11:41 +0000 (20:11 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 23 Apr 2025 21:08:39 +0000 (14:08 -0700)
We were hiding a number of declarations from user-only,
although it hurts nothing to allow them.  The inlines
for user-only are unused.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/hw/intc/armv7m_nvic.h

index 89fe8aedaa92facb3178bd128b26772cbc7d4dc8..7b9964fe7e4f5789dba08f270ccfc5864e67606e 100644 (file)
@@ -189,21 +189,7 @@ int armv7m_nvic_raw_execution_priority(NVICState *s);
  * @secure: the security state to test
  * This corresponds to the pseudocode IsReqExecPriNeg().
  */
-#ifndef CONFIG_USER_ONLY
 bool armv7m_nvic_neg_prio_requested(NVICState *s, bool secure);
-#else
-static inline bool armv7m_nvic_neg_prio_requested(NVICState *s, bool secure)
-{
-    return false;
-}
-#endif
-#ifndef CONFIG_USER_ONLY
 bool armv7m_nvic_can_take_pending_exception(NVICState *s);
-#else
-static inline bool armv7m_nvic_can_take_pending_exception(NVICState *s)
-{
-    return true;
-}
-#endif
 
 #endif