8294012: RISC-V: get/put_native_u8 missing the case when address&7 is 6
Reviewed-by: shade, fyang
This commit is contained in:
parent
584de68d78
commit
09af637a9b
@ -75,6 +75,7 @@ class Bytes: AllStatic {
|
||||
((u8)(((u4*)p)[0]));
|
||||
|
||||
case 2:
|
||||
case 6:
|
||||
return ((u8)(((u2*)p)[3]) << 48) |
|
||||
((u8)(((u2*)p)[2]) << 32) |
|
||||
((u8)(((u2*)p)[1]) << 16) |
|
||||
@ -133,6 +134,7 @@ class Bytes: AllStatic {
|
||||
break;
|
||||
|
||||
case 2:
|
||||
case 6:
|
||||
((u2*)p)[3] = x >> 48;
|
||||
((u2*)p)[2] = x >> 32;
|
||||
((u2*)p)[1] = x >> 16;
|
||||
|
Loading…
Reference in New Issue
Block a user