Skip to content

Commit 066d01b

Browse files
Yanhong Zhuguotaiping1
authored andcommitted
8278895: riscv: Rename Riscv64 to RISCV64
Co-authored-by: Taiping Guo <[email protected]> Reviewed-by: fyang
1 parent d9b892c commit 066d01b

17 files changed

+32
-33
lines changed

src/hotspot/cpu/riscv/macroAssembler_riscv.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,7 @@ class MacroAssembler: public Assembler {
780780
#endif
781781
void repne_scan(Register addr, Register value, Register count, Register temp);
782782

783-
// Return true if an addres is within the 48-bit Riscv64 address
784-
// space.
783+
// Return true if an address is within the 48-bit RISCV64 address space.
785784
bool is_valid_riscv64_address(address addr) {
786785
return ((uintptr_t)addr >> 48) == 0;
787786
}

src/hotspot/cpu/riscv/riscv.ad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3457,7 +3457,7 @@ operand indOffLN(iRegN reg, immLOffset off)
34573457
%}
34583458
%}
34593459

3460-
// Riscv64 opto stubs need to write to the pc slot in the thread anchor
3460+
// RISCV64 opto stubs need to write to the pc slot in the thread anchor
34613461
operand thread_anchor_pc(javaThread_RegP reg, immL_pc_off off)
34623462
%{
34633463
constraint(ALLOC_IN_RC(ptr_reg));

src/hotspot/cpu/riscv/sharedRuntime_riscv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2197,7 +2197,7 @@ void SharedRuntime::generate_deopt_blob() {
21972197
// Number of stack slots between incoming argument block and the start of
21982198
// a new frame. The PROLOG must add this many slots to the stack. The
21992199
// EPILOG must remove this many slots.
2200-
// Riscv64 needs two words for RA (return address) and FP (frame pointer).
2200+
// RISCV64 needs two words for RA (return address) and FP (frame pointer).
22012201
uint SharedRuntime::in_preserve_stack_slots() {
22022202
return 2 * VMRegImpl::slots_per_word;
22032203
}

src/hotspot/cpu/riscv/vm_version_riscv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ void VM_Version::initialize_cpu_information(void) {
179179
_no_of_threads = _no_of_cores;
180180
_no_of_sockets = _no_of_cores;
181181
snprintf(_cpu_name, CPU_TYPE_DESC_BUF_SIZE - 1, "RISCV64");
182-
snprintf(_cpu_desc, CPU_DETAILED_DESC_BUF_SIZE, "RV64%s", _features_string);
182+
snprintf(_cpu_desc, CPU_DETAILED_DESC_BUF_SIZE, "RISCV64 %s", _features_string);
183183
_initialized = true;
184184
}

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/HotSpotAgent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import sun.jvm.hotspot.debugger.MachineDescriptionAMD64;
3737
import sun.jvm.hotspot.debugger.MachineDescriptionPPC64;
3838
import sun.jvm.hotspot.debugger.MachineDescriptionAArch64;
39-
import sun.jvm.hotspot.debugger.MachineDescriptionRiscv64;
39+
import sun.jvm.hotspot.debugger.MachineDescriptionRISCV64;
4040
import sun.jvm.hotspot.debugger.MachineDescriptionIntelX86;
4141
import sun.jvm.hotspot.debugger.NoSuchSymbolException;
4242
import sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal;
@@ -571,7 +571,7 @@ private void setupDebuggerLinux() {
571571
} else if (cpu.equals("aarch64")) {
572572
machDesc = new MachineDescriptionAArch64();
573573
} else if (cpu.equals("riscv64")) {
574-
machDesc = new MachineDescriptionRiscv64();
574+
machDesc = new MachineDescriptionRISCV64();
575575
} else {
576576
try {
577577
machDesc = (MachineDescription)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
package sun.jvm.hotspot.debugger;
2727

28-
public class MachineDescriptionRiscv64 extends MachineDescriptionTwosComplement implements MachineDescription {
28+
public class MachineDescriptionRISCV64 extends MachineDescriptionTwosComplement implements MachineDescription {
2929
public long getAddressSize() {
3030
return 8;
3131
}

test/hotspot/jtreg/compiler/intrinsics/sha/cli/TestUseSHA1IntrinsicsOptionOnUnsupportedCPU.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForOtherCPU;
4141
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedAArch64CPU;
42-
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedRiscv64CPU;
42+
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedRISCV64CPU;
4343
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedX86CPU;
4444
import compiler.intrinsics.sha.cli.testcases.UseSHAIntrinsicsSpecificTestCaseForUnsupportedCPU;
4545

@@ -50,7 +50,7 @@ public static void main(String args[]) throws Throwable {
5050
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION),
5151
new GenericTestCaseForUnsupportedAArch64CPU(
5252
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION),
53-
new GenericTestCaseForUnsupportedRiscv64CPU(
53+
new GenericTestCaseForUnsupportedRISCV64CPU(
5454
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION),
5555
new UseSHAIntrinsicsSpecificTestCaseForUnsupportedCPU(
5656
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION),

test/hotspot/jtreg/compiler/intrinsics/sha/cli/TestUseSHA256IntrinsicsOptionOnUnsupportedCPU.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForOtherCPU;
4141
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedAArch64CPU;
42-
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedRiscv64CPU;
42+
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedRISCV64CPU;
4343
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedX86CPU;
4444
import compiler.intrinsics.sha.cli.testcases.UseSHAIntrinsicsSpecificTestCaseForUnsupportedCPU;
4545

@@ -50,7 +50,7 @@ public static void main(String args[]) throws Throwable {
5050
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION),
5151
new GenericTestCaseForUnsupportedAArch64CPU(
5252
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION),
53-
new GenericTestCaseForUnsupportedRiscv64CPU(
53+
new GenericTestCaseForUnsupportedRISCV64CPU(
5454
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION),
5555
new UseSHAIntrinsicsSpecificTestCaseForUnsupportedCPU(
5656
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION),

test/hotspot/jtreg/compiler/intrinsics/sha/cli/TestUseSHA512IntrinsicsOptionOnUnsupportedCPU.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForOtherCPU;
4141
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedAArch64CPU;
42-
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedRiscv64CPU;
42+
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedRISCV64CPU;
4343
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedX86CPU;
4444
import compiler.intrinsics.sha.cli.testcases.UseSHAIntrinsicsSpecificTestCaseForUnsupportedCPU;
4545

@@ -50,7 +50,7 @@ public static void main(String args[]) throws Throwable {
5050
DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION),
5151
new GenericTestCaseForUnsupportedAArch64CPU(
5252
DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION),
53-
new GenericTestCaseForUnsupportedRiscv64CPU(
53+
new GenericTestCaseForUnsupportedRISCV64CPU(
5454
DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION),
5555
new UseSHAIntrinsicsSpecificTestCaseForUnsupportedCPU(
5656
DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION),

test/hotspot/jtreg/compiler/intrinsics/sha/cli/TestUseSHAOptionOnUnsupportedCPU.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForOtherCPU;
4141
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedAArch64CPU;
42-
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedRiscv64CPU;
42+
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedRISCV64CPU;
4343
import compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedX86CPU;
4444
import compiler.intrinsics.sha.cli.testcases.UseSHASpecificTestCaseForUnsupportedCPU;
4545

@@ -50,7 +50,7 @@ public static void main(String args[]) throws Throwable {
5050
DigestOptionsBase.USE_SHA_OPTION),
5151
new GenericTestCaseForUnsupportedAArch64CPU(
5252
DigestOptionsBase.USE_SHA_OPTION),
53-
new GenericTestCaseForUnsupportedRiscv64CPU(
53+
new GenericTestCaseForUnsupportedRISCV64CPU(
5454
DigestOptionsBase.USE_SHA_OPTION),
5555
new UseSHASpecificTestCaseForUnsupportedCPU(
5656
DigestOptionsBase.USE_SHA_OPTION),

0 commit comments

Comments
 (0)