Browse Source
Merge pull request #2148 from 5265325/fix/xtal
Fix xtval when illegal instruction is triggered.
pull/2156/head
Andrew Waterman
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
riscv/mmu.h
|
|
|
@ -315,7 +315,7 @@ public: |
|
|
|
unsigned length = insn_length(insn); |
|
|
|
|
|
|
|
for (unsigned pos = sizeof(insn_parcel_t); pos < length; pos += sizeof(insn_parcel_t)) { |
|
|
|
insn |= fetch_insn_parcel(addr + pos) << (8 * pos); |
|
|
|
insn |= (insn_bits_t)fetch_insn_parcel(addr + pos) << (8 * pos); |
|
|
|
length = insn_length(insn); |
|
|
|
} |
|
|
|
|
|
|
|
|