2222
2323#include "kvm-consts.h"
2424#include "hw/registerfields.h"
25+ #include "nvic/nvic_interfaces.h"
2526
2627#if defined(TARGET_AARCH64 )
2728 /* AArch64 definitions */
@@ -1628,15 +1629,17 @@ void arm_cpu_list(FILE *f, fprintf_function cpu_fprintf);
16281629uint32_t arm_phys_excp_target_el (CPUState * cs , uint32_t excp_idx ,
16291630 uint32_t cur_el , bool secure );
16301631
1632+ // The following 6 interfaces move to nvic/nvic_interfaces,
1633+ // since S2E ARM CPU and qemu client both will invokes these functions.
16311634/* Interface between CPU and Interrupt controller. */
1632- #ifndef CONFIG_USER_ONLY
1633- bool armv7m_nvic_can_take_pending_exception (void * opaque );
1634- #else
1635- static inline bool armv7m_nvic_can_take_pending_exception (void * opaque )
1636- {
1637- return true;
1638- }
1639- #endif
1635+ /* #ifndef CONFIG_USER_ONLY */
1636+ // bool armv7m_nvic_can_take_pending_exception(void *opaque);
1637+ // #else
1638+ // static inline bool armv7m_nvic_can_take_pending_exception(void *opaque)
1639+ // {
1640+ // return true;
1641+ // }
1642+ /* #endif */
16401643/**
16411644 * armv7m_nvic_set_pending: mark the specified exception as pending
16421645 * @opaque: the NVIC
@@ -1649,7 +1652,7 @@ static inline bool armv7m_nvic_can_take_pending_exception(void *opaque)
16491652 * if @secure is true and @irq does not specify one of the fixed set
16501653 * of architecturally banked exceptions.
16511654 */
1652- void armv7m_nvic_set_pending (void * opaque , int irq , bool secure );
1655+ // void armv7m_nvic_set_pending(void *opaque, int irq, bool secure);
16531656/**
16541657 * armv7m_nvic_set_pending_derived: mark this derived exception as pending
16551658 * @opaque: the NVIC
@@ -1662,7 +1665,7 @@ void armv7m_nvic_set_pending(void *opaque, int irq, bool secure);
16621665 * exceptions (exceptions generated in the course of trying to take
16631666 * a different exception).
16641667 */
1665- void armv7m_nvic_set_pending_derived (void * opaque , int irq , bool secure );
1668+ // void armv7m_nvic_set_pending_derived(void *opaque, int irq, bool secure);
16661669/**
16671670 * armv7m_nvic_get_pending_irq_info: return highest priority pending
16681671 * exception, and whether it targets Secure state
@@ -1676,8 +1679,8 @@ void armv7m_nvic_set_pending_derived(void *opaque, int irq, bool secure);
16761679 * to true if the current highest priority pending exception should
16771680 * be taken to Secure state, false for NS.
16781681 */
1679- void armv7m_nvic_get_pending_irq_info (void * opaque , int * pirq ,
1680- bool * ptargets_secure );
1682+ // void armv7m_nvic_get_pending_irq_info(void *opaque, int *pirq,
1683+ // bool *ptargets_secure);
16811684/**
16821685 * armv7m_nvic_acknowledge_irq: make highest priority pending exception active
16831686 * @opaque: the NVIC
@@ -1686,7 +1689,7 @@ void armv7m_nvic_get_pending_irq_info(void *opaque, int *pirq,
16861689 * state to the active state, and update v7m.exception to indicate that
16871690 * it is the exception currently being handled.
16881691 */
1689- void armv7m_nvic_acknowledge_irq (void * opaque );
1692+ // void armv7m_nvic_acknowledge_irq(void *opaque);
16901693/**
16911694 * armv7m_nvic_complete_irq: complete specified interrupt or exception
16921695 * @opaque: the NVIC
@@ -1698,7 +1701,7 @@ void armv7m_nvic_acknowledge_irq(void *opaque);
16981701 * 0 if there is still an irq active after this one was completed
16991702 * (Ignoring -1, this is the same as the RETTOBASE value before completion.)
17001703 */
1701- int armv7m_nvic_complete_irq (void * opaque , int irq , bool secure );
1704+ // int armv7m_nvic_complete_irq(void *opaque, int irq, bool secure);
17021705/**
17031706 * armv7m_nvic_raw_execution_priority: return the raw execution priority
17041707 * @opaque: the NVIC
0 commit comments