aboutsummaryrefslogtreecommitdiff
path: root/riscv/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/processor.h')
-rw-r--r--riscv/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/processor.h b/riscv/processor.h
index 06a92b1..a660399 100644
--- a/riscv/processor.h
+++ b/riscv/processor.h
@@ -283,7 +283,7 @@ public:
return impl_table[impl];
}
reg_t pc_alignment_mask() {
- return ~(reg_t)(extension_enabled('C') ? 0 : 2);
+ return ~(reg_t)(extension_enabled(EXT_ZCA) ? 0 : 2);
}
void check_pc_alignment(reg_t pc) {
if (unlikely(pc & ~pc_alignment_mask()))