Set misa.b when all of Zba, Zbb and Zbs are enabled.
(The B extension has now been ratified as this combination of extensions.)
This commit is contained in:
parent
6db1edc675
commit
a6558e554a
|
@ -588,7 +588,11 @@ always @ (*) begin
|
||||||
1'b1, // Integer ISA
|
1'b1, // Integer ISA
|
||||||
5'd0, // H...D, no
|
5'd0, // H...D, no
|
||||||
|EXTENSION_C,
|
|EXTENSION_C,
|
||||||
1'b0,
|
&{ // B is now defined as ZbaZbbZbs
|
||||||
|
|EXTENSION_ZBA,
|
||||||
|
|EXTENSION_ZBB,
|
||||||
|
|EXTENSION_ZBS
|
||||||
|
},
|
||||||
|EXTENSION_A
|
|EXTENSION_A
|
||||||
};
|
};
|
||||||
end
|
end
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 5b04c5b81b5d626a2281d820f23af28c19ed0746
|
Subproject commit 02ad7588bf30199fed22846ad2ae2b69013e1a07
|
|
@ -83,7 +83,7 @@ std::optional<ux_t> RVCSR::read(uint16_t addr, bool side_effect) {
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
switch (addr) {
|
switch (addr) {
|
||||||
case CSR_MISA: return 0x40901105; // RV32IMACX + U
|
case CSR_MISA: return 0x40901107u; // RV32IMABCX + U
|
||||||
case CSR_MHARTID: return 0;
|
case CSR_MHARTID: return 0;
|
||||||
case CSR_MARCHID: return 0x1b; // Hazard3
|
case CSR_MARCHID: return 0x1b; // Hazard3
|
||||||
case CSR_MIMPID: return 0x12345678u; // Match testbench value
|
case CSR_MIMPID: return 0x12345678u; // Match testbench value
|
||||||
|
|
|
@ -11,7 +11,7 @@ marchid: 0000001b
|
||||||
mimpid: 12345678
|
mimpid: 12345678
|
||||||
mhartid: 00000000
|
mhartid: 00000000
|
||||||
mconfigptr: 9abcdef0
|
mconfigptr: 9abcdef0
|
||||||
misa: 40901105 // RV32IMACX + U
|
misa: 40901107 // RV32IMABCX + U
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue