Browse Source
Merge pull request #77 from riscv/mtrap-fix
mtrap: loop forever, really
pull/70/merge
Palmer Dabbelt
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
machine/mtrap.c
|
|
|
@ -38,7 +38,7 @@ void poweroff(uint16_t code) |
|
|
|
if (htif) { |
|
|
|
htif_poweroff(); |
|
|
|
} else { |
|
|
|
while (1); |
|
|
|
while (1) { asm volatile ("#noop\n"); } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|