Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typo for privilege
Browse files Browse the repository at this point in the history
poemonsense committed Mar 29, 2024
1 parent 30bf828 commit f0f790c
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/Bundles.scala
Original file line number Diff line number Diff line change
@@ -107,7 +107,7 @@ class TrapEvent extends DifftestBaseBundle {
}

class CSRState extends DifftestBaseBundle {
val priviledgeMode = UInt(64.W)
val privilegeMode = UInt(64.W)
val mstatus = UInt(64.W)
val sstatus = UInt(64.W)
val mepc = UInt(64.W)
2 changes: 1 addition & 1 deletion src/test/csrc/difftest/difftest.cpp
Original file line number Diff line number Diff line change
@@ -1052,7 +1052,7 @@ void Difftest::display() {
printf("\n============== REF Regs ==============\n");
fflush(stdout);
proxy->ref_reg_display();
printf("priviledgeMode: %lu\n", dut->csr.priviledgeMode);
printf("privilegeMode: %lu\n", dut->csr.privilegeMode);
}

void CommitTrace::display(bool use_spike) {

0 comments on commit f0f790c

Please sign in to comment.