-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dbltrp): trap info update in raise_intr (#596)
* add trapInfo buffer to save tval/tval2/tinst in mmu/amo/paddr * assign tval/tval2/tinst to xtval/tval2/tinst according to xedeleg/xideleg in raise_intr * allow software to clear nmie as we init nmie to 1
- Loading branch information
Showing
7 changed files
with
100 additions
and
57 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/*************************************************************************************** | ||
* Copyright (c) 2014-2021 Zihao Yu, Nanjing University | ||
* Copyright (c) 2020-2022 Institute of Computing Technology, Chinese Academy of Sciences | ||
* | ||
* NEMU is licensed under Mulan PSL v2. | ||
* You can use this software according to the terms and conditions of the Mulan PSL v2. | ||
* You may obtain a copy of Mulan PSL v2 at: | ||
* http://license.coscl.org.cn/MulanPSL2 | ||
* | ||
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||
* | ||
* See the Mulan PSL v2 for more details. | ||
***************************************************************************************/ | ||
|
||
#ifndef __TRAPINFO_H__ | ||
#define __TRAPINFO_H__ | ||
|
||
#include "common.h" | ||
|
||
typedef struct { | ||
word_t tval; | ||
word_t tval2; | ||
word_t tinst; | ||
} trap_info_t; | ||
|
||
extern trap_info_t trapInfo; | ||
void clear_trapinfo(); | ||
|
||
|
||
#endif // __TRAPINFO_H__ |
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
Oops, something went wrong.