> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar 1 12:35:11 UTC 2024 x86_64 GNU/Linux 15:42:07 up 5:18, 2 users, load average: 0.69, 0.52, 0.45
This commit is contained in:
parent
18d33c363b
commit
58985894f6
2 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,7 @@
|
||||||
devShells.nemu = pkgs.mkShell {
|
devShells.nemu = pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
clang-tools
|
clang-tools
|
||||||
|
gdb
|
||||||
];
|
];
|
||||||
inputsFrom = [
|
inputsFrom = [
|
||||||
self.packages.${system}.nemu
|
self.packages.${system}.nemu
|
||||||
|
|
|
@ -75,6 +75,9 @@ static void exec_once(Decode *s, vaddr_t pc) {
|
||||||
|
|
||||||
static void execute(uint64_t n) {
|
static void execute(uint64_t n) {
|
||||||
Decode s;
|
Decode s;
|
||||||
|
#ifdef CONFIG_ITRACE
|
||||||
|
memset(s.logbuf, 0, CONFIG_ITRACE_BUFFER * 128 * sizeof(char));
|
||||||
|
#endif
|
||||||
for (;n > 0; n --) {
|
for (;n > 0; n --) {
|
||||||
exec_once(&s, cpu.pc);
|
exec_once(&s, cpu.pc);
|
||||||
g_nr_guest_inst ++;
|
g_nr_guest_inst ++;
|
||||||
|
|
Loading…
Reference in a new issue