Skip to content

Commit a4e9098

Browse files
DingliZhangRealFYang
authored andcommitted
8367048: RISC-V: Correct pipeline descriptions of the architecture
Backport-of: 0aee7bf24d7f2578d3867bcfa25646cb0bd06d9a
1 parent f55161a commit a4e9098

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/hotspot/cpu/riscv/riscv.ad

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3824,13 +3824,18 @@ opclass immIorL(immI, immL);
38243824
pipeline %{
38253825

38263826
attributes %{
3827-
// RISC-V instructions are of fixed length
3828-
fixed_size_instructions; // Fixed size instructions TODO does
3829-
max_instructions_per_bundle = 2; // Generic RISC-V 1, Sifive Series 7 2
3830-
// RISC-V instructions come in 32-bit word units
3831-
instruction_unit_size = 4; // An instruction is 4 bytes long
3832-
instruction_fetch_unit_size = 64; // The processor fetches one line
3833-
instruction_fetch_units = 1; // of 64 bytes
3827+
// RISC-V instructions are of length 2 or 4 bytes.
3828+
variable_size_instructions;
3829+
instruction_unit_size = 2;
3830+
3831+
// Up to 4 instructions per bundle
3832+
max_instructions_per_bundle = 4;
3833+
3834+
// The RISC-V processor fetches 64 bytes...
3835+
instruction_fetch_unit_size = 64;
3836+
3837+
// ...in one line.
3838+
instruction_fetch_units = 1;
38343839

38353840
// List of nop instructions
38363841
nops( MachNop );

0 commit comments

Comments
 (0)