mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
Fix EXCP_MASK to include all relevant bits from scause.
While cause codes higher than 16 are reserved, the exception code field of the register is defined to be all bits but the upper-most bit. Reviewed by: mhorne MFC after: 1 week Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D23510
This commit is contained in:
parent
ac2b208d08
commit
4a9b01b262
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357595
|
@ -37,8 +37,7 @@
|
|||
#ifndef _MACHINE_RISCVREG_H_
|
||||
#define _MACHINE_RISCVREG_H_
|
||||
|
||||
#define EXCP_SHIFT 0
|
||||
#define EXCP_MASK (0xf << EXCP_SHIFT)
|
||||
#define EXCP_MASK (~EXCP_INTR)
|
||||
#define EXCP_MISALIGNED_FETCH 0
|
||||
#define EXCP_FAULT_FETCH 1
|
||||
#define EXCP_ILLEGAL_INSTRUCTION 2
|
||||
|
|
Loading…
Reference in a new issue