-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
#define STDOUT 0xd0580000 | ||
|
||
#define TRIGGER_NMI 0x80 | ||
/* TODO remove this. It's not supported by the testbench mailbox logic */ | ||
#define LOAD_NMI_ADDR 0x81 | ||
#define TRIGGER_DBUS_FAULT 0x82 | ||
#define TRIGGER_IBUS_FAULT 0x83 | ||
#define TRIGGER_SOFT_INT 0x84 | ||
#define TRIGGER_TIMER_INT 0x85 | ||
#define TRIGGER_EXT_INT1 0x86 | ||
/* helper macros that define messages to be written to `STDOUT` to trigger and clear interrupts */ | ||
|
||
#define CLEAR 0x82 | ||
#define TRIGGER 0x83 | ||
|
||
#define NMI_INT (1<<8) | ||
#define TIMER_INT (1<<9) | ||
#define SOFT_INT (1<<10) | ||
|
||
#define TRIGGER_NMI_INT (TRIGGER | NMI_INT) | ||
#define TRIGGER_TIMER_INT (TRIGGER | TIMER_INT) | ||
#define TRIGGER_SOFT_INT (TRIGGER | SOFT_INT) | ||
|
||
#define CLEAR_NMI_INT (CLEAR | NMI_INT) | ||
#define CLEAR_TIMER_INT (CLEAR | TIMER_INT) | ||
#define CLEAR_SOFT_INT (CLEAR | SOFT_INT) |