Skip to content

Commit

Permalink
Fix spelling mistakes in OMRProcessorArchitecture enum
Browse files Browse the repository at this point in the history
For RISCV32 and RISCV64 enum variants in OMRProcessorArchitecture,
'processor' was spelt 'procesor'. This patch fixes the spelling.

Signed-off-by: Nathan Henderson <nathan.henderson@ibm.com>
  • Loading branch information
ThanHenderson committed Feb 7, 2024
1 parent f010ed6 commit 174c167
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion compiler/riscv/env/OMRCPU.cpp
Expand Up @@ -50,7 +50,7 @@ OMR::RV::CPU::getProcessorName()
const char* returnString = "";
switch(_processorDescription.processor)
{
case OMR_PROCESOR_RISCV64_UNKNOWN:
case OMR_PROCESSOR_RISCV64_UNKNOWN:
returnString = "Unknown RV64G processor";
break;
default:
Expand Down
4 changes: 2 additions & 2 deletions compiler/riscv/env/OMRCPU.hpp
Expand Up @@ -50,8 +50,8 @@ class OMR_EXTENSIBLE CPU : public OMR::CPU

CPU() : OMR::CPU()
{
_processorDescription.processor = OMR_PROCESOR_RISCV64_UNKNOWN;
_processorDescription.physicalProcessor = OMR_PROCESOR_RISCV64_UNKNOWN;
_processorDescription.processor = OMR_PROCESSOR_RISCV64_UNKNOWN;
_processorDescription.physicalProcessor = OMR_PROCESSOR_RISCV64_UNKNOWN;
memset(_processorDescription.features, 0, OMRPORT_SYSINFO_FEATURES_SIZE*sizeof(uint32_t));
}
CPU(const OMRProcessorDesc& processorDescription) : OMR::CPU(processorDescription) {}
Expand Down
4 changes: 2 additions & 2 deletions include_core/omrport.h
Expand Up @@ -1465,8 +1465,8 @@ typedef enum OMRProcessorArchitecture {
OMR_PROCESSOR_X86_AMD_LAST = OMR_PROCESSOR_X86_AMDFAMILY15H,
OMR_PROCESSOR_X86_LAST = OMR_PROCESSOR_X86_AMDFAMILY15H,

OMR_PROCESOR_RISCV32_UNKNOWN,
OMR_PROCESOR_RISCV64_UNKNOWN,
OMR_PROCESSOR_RISCV32_UNKNOWN,
OMR_PROCESSOR_RISCV64_UNKNOWN,

OMR_PROCESSOR_DUMMY = 0x40000000 /* force wide enums */

Expand Down
4 changes: 2 additions & 2 deletions port/unix/omrsysinfo.c
Expand Up @@ -1885,9 +1885,9 @@ static intptr_t
omrsysinfo_get_riscv_description(struct OMRPortLibrary *portLibrary, OMRProcessorDesc *desc)
{
#if defined(RISCV32)
desc->processor = OMR_PROCESOR_RISCV32_UNKNOWN;
desc->processor = OMR_PROCESSOR_RISCV32_UNKNOWN;
#elif defined(RISCV64)
desc->processor = OMR_PROCESOR_RISCV64_UNKNOWN;
desc->processor = OMR_PROCESSOR_RISCV64_UNKNOWN;
#elif
desc->processor = OMR_PROCESSOR_UNDEFINED;
#endif
Expand Down

0 comments on commit 174c167

Please sign in to comment.