Skip to content

Commit 579d7c5

Browse files
feilongjiangYanhong Zhu
authored andcommitted
8282466: riscv: Remove unused code in linux_riscv
Reviewed-by: yzhu, fyang
1 parent 8a47fc5 commit 579d7c5

23 files changed

+118
-124
lines changed

src/hotspot/cpu/riscv/abstractInterpreter_riscv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ int AbstractInterpreter::size_activation(int max_stack,
101101
// frame do we need to allow max_stack words.
102102
(is_top_frame ? max_stack : temps + extra_args);
103103

104-
// On riscv64 we always keep the stack pointer 16-aligned, so we
104+
// On riscv we always keep the stack pointer 16-aligned, so we
105105
// must round up here.
106106
size = align_up(size, 2);
107107

src/hotspot/cpu/riscv/assembler_riscv.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3034,7 +3034,7 @@ enum Nf {
30343034
return is_imm_in_range(imm, 12, 0);
30353035
}
30363036

3037-
// The maximum range of a branch is fixed for the riscv64
3037+
// The maximum range of a branch is fixed for the riscv
30383038
// architecture.
30393039
static const unsigned long branch_range = 1 * M;
30403040

src/hotspot/cpu/riscv/c1_CodeStubs_riscv.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
4-
* Copyright (c) 2020, 2021, Huawei Technologies Co., Ltd. All rights reserved.
4+
* Copyright (c) 2020, 2022, Huawei Technologies Co., Ltd. All rights reserved.
55
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66
*
77
* This code is free software; you can redistribute it and/or modify it
@@ -261,10 +261,10 @@ int PatchingStub::_patch_info_offset = -NativeGeneralJump::instruction_size;
261261

262262
void PatchingStub::align_patch_site(MacroAssembler* masm) {}
263263

264-
// RISCV64 don't use C1 runtime patching. When need patch, just deoptimize.
264+
// RISCV don't use C1 runtime patching. When need patch, just deoptimize.
265265
void PatchingStub::emit_code(LIR_Assembler* ce)
266266
{
267-
assert(false, "RISCV64 should not use C1 runtime patching");
267+
assert(false, "RISCV should not use C1 runtime patching");
268268
}
269269

270270
void DeoptimizeStub::emit_code(LIR_Assembler* ce)

src/hotspot/cpu/riscv/c1_Defs_riscv.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2020, 2021, Huawei Technologies Co., Ltd. All rights reserved.
3+
* Copyright (c) 2020, 2022, Huawei Technologies Co., Ltd. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
66
* This code is free software; you can redistribute it and/or modify it
@@ -76,7 +76,7 @@ enum {
7676

7777
// Encoding of float value in debug info. This is true on x86 where
7878
// floats are extended to doubles when stored in the stack, false for
79-
// RISCV64 where floats and doubles are stored in their native form.
79+
// RISCV where floats and doubles are stored in their native form.
8080
enum {
8181
pd_float_saved_as_double = false
8282
};

src/hotspot/cpu/riscv/c1_FpuStackSim_riscv.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2020, 2021, Huawei Technologies Co., Ltd. All rights reserved.
3+
* Copyright (c) 2020, 2022, Huawei Technologies Co., Ltd. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
66
* This code is free software; you can redistribute it and/or modify it
@@ -27,4 +27,4 @@
2727
// FpuStackSim
2828
//--------------------------------------------------------
2929

30-
// No FPU stack on RISCV64
30+
// No FPU stack on RISCV

src/hotspot/cpu/riscv/c1_FpuStackSim_riscv.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2020, 2021, Huawei Technologies Co., Ltd. All rights reserved.
3+
* Copyright (c) 2020, 2022, Huawei Technologies Co., Ltd. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
66
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,7 @@
2626
#ifndef CPU_RISCV_C1_FPUSTACKSIM_RISCV_HPP
2727
#define CPU_RISCV_C1_FPUSTACKSIM_RISCV_HPP
2828

29-
// No FPU stack on RISCV64
29+
// No FPU stack on RISCV
3030
class FpuStackSim;
3131

3232
#endif // CPU_RISCV_C1_FPUSTACKSIM_RISCV_HPP

src/hotspot/cpu/riscv/c1_FrameMap_riscv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ LIR_Opr FrameMap::stack_pointer() {
380380

381381
// JSR 292
382382
LIR_Opr FrameMap::method_handle_invoke_SP_save_opr() {
383-
return LIR_OprFact::illegalOpr; // Not needed on riscv64
383+
return LIR_OprFact::illegalOpr; // Not needed on riscv
384384
}
385385

386386
bool FrameMap::validate_frame() {

src/hotspot/cpu/riscv/c1_FrameMap_riscv.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2020, 2021, Huawei Technologies Co., Ltd. All rights reserved.
3+
* Copyright (c) 2020, 2022, Huawei Technologies Co., Ltd. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
66
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,7 @@
2626
#ifndef CPU_RISCV_C1_FRAMEMAP_RISCV_HPP
2727
#define CPU_RISCV_C1_FRAMEMAP_RISCV_HPP
2828

29-
// On RISCV64 the frame looks as follows:
29+
// On RISCV the frame looks as follows:
3030
//
3131
// +-----------------------------+---------+----------------------------------------+----------------+-----------
3232
// | size_arguments-nof_reg_args | 2 words | size_locals-size_arguments+numreg_args | _size_monitors | spilling .

src/hotspot/cpu/riscv/c2_init_riscv.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, 2019, Red Hat Inc. All rights reserved.
4-
* Copyright (c) 2020, 2021, Huawei Technologies Co., Ltd. All rights reserved.
4+
* Copyright (c) 2020, 2022, Huawei Technologies Co., Ltd. All rights reserved.
55
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66
*
77
* This code is free software; you can redistribute it and/or modify it
@@ -28,7 +28,7 @@
2828
#include "opto/compile.hpp"
2929
#include "opto/node.hpp"
3030

31-
// processor dependent initialization for riscv64
31+
// processor dependent initialization for riscv
3232

3333
extern void reg_mask_init();
3434

src/hotspot/cpu/riscv/disassembler_riscv.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
// Returns address of n-th instruction preceding addr,
3838
// NULL if no preceding instruction can be found.
39-
// On (riscv64), we assume a constant instruction length.
39+
// On riscv, we assume a constant instruction length.
4040
// It might be beneficial to check "is_readable" as we do on ppc and s390.
4141
static address find_prev_instr(address addr, int n_instr) {
4242
return addr - Assembler::instruction_size * n_instr;

0 commit comments

Comments
 (0)