Skip to content

Commit 9d179f4

Browse files
committedOct 14, 2024
8294012: RISC-V: get/put_native_u8 missing the case when address&7 is 6
Reviewed-by: fyang, gcao Backport-of: 09af637a9be106a0a6b82b3638ae004d9248fc78
1 parent ef970d4 commit 9d179f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/hotspot/cpu/riscv/bytes_riscv.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class Bytes: AllStatic {
7373
((u8)(((u4*)p)[0]));
7474

7575
case 2:
76+
case 6:
7677
return ((u8)(((u2*)p)[3]) << 48) |
7778
((u8)(((u2*)p)[2]) << 32) |
7879
((u8)(((u2*)p)[1]) << 16) |
@@ -131,6 +132,7 @@ class Bytes: AllStatic {
131132
break;
132133

133134
case 2:
135+
case 6:
134136
((u2*)p)[3] = x >> 48;
135137
((u2*)p)[2] = x >> 32;
136138
((u2*)p)[1] = x >> 16;

0 commit comments

Comments
 (0)
Please sign in to comment.