Skip to content

Commit 0aee7bf

Browse files
DingliZhangRealFYang
authored andcommitted
8367048: RISC-V: Correct pipeline descriptions of the architecture
Reviewed-by: fyang, fjiang, mli
1 parent 4ec63e8 commit 0aee7bf

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
@@ -3833,13 +3833,18 @@ opclass immIorL(immI, immL);
38333833
pipeline %{
38343834

38353835
attributes %{
3836-
// RISC-V instructions are of fixed length
3837-
fixed_size_instructions; // Fixed size instructions TODO does
3838-
max_instructions_per_bundle = 2; // Generic RISC-V 1, Sifive Series 7 2
3839-
// RISC-V instructions come in 32-bit word units
3840-
instruction_unit_size = 4; // An instruction is 4 bytes long
3841-
instruction_fetch_unit_size = 64; // The processor fetches one line
3842-
instruction_fetch_units = 1; // of 64 bytes
3836+
// RISC-V instructions are of length 2 or 4 bytes.
3837+
variable_size_instructions;
3838+
instruction_unit_size = 2;
3839+
3840+
// Up to 4 instructions per bundle
3841+
max_instructions_per_bundle = 4;
3842+
3843+
// The RISC-V processor fetches 64 bytes...
3844+
instruction_fetch_unit_size = 64;
3845+
3846+
// ...in one line.
3847+
instruction_fetch_units = 1;
38433848

38443849
// List of nop instructions
38453850
nops( MachNop );

0 commit comments

Comments
 (0)