Skip to content

Commit

Permalink
SoC/evalsoc: need to include <riscv_encoding.h> which define macro IN…
Browse files Browse the repository at this point in the history
…TMODE_PLIC/INTMODE_ECLIC

These macros are used by both startup asm code and <Device>.h, so we need to include this
riscv_encoding.h in both place

Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Nov 30, 2023
1 parent 5d35311 commit 65bf0ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SoC/evalsoc/Common/Include/evalsoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

#include <stddef.h>

// Provided macro INTMODE_PLIC and INTMODE_ECLIC
#include <riscv_encoding.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -70,7 +73,6 @@ typedef struct IRegion_Info {
#define SIMULATION_MODE_XLSPIKE 0 /*!< xlspike simulation mode */
#define SIMULATION_MODE_QEMU 1 /*!< qemu simulation mode */


/* =========================================================================================================================== */
/* ================ Interrupt Number Definition ================ */
/* =========================================================================================================================== */
Expand Down

0 comments on commit 65bf0ee

Please sign in to comment.