Skip to content

Commit

Permalink
Updated after review
Browse files Browse the repository at this point in the history
  • Loading branch information
clamp03 committed Oct 23, 2023
1 parent 4fba9f0 commit a4d98aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/coreclr/debug/daccess/datatargetadapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,10 @@ DataTargetAdapter::GetPlatform(
_ASSERTE_MSG(false, "Not supported platform.");
return E_NOTIMPL;

#ifndef HOST_WINDOWS
// In windows, IMAGE_FILE_MACHINE_RISCV64 is not declared yet.
case IMAGE_FILE_MACHINE_RISCV64:
ulExpectedPointerSize = 8;
platform = CORDB_PLATFORM_POSIX_RISCV64;
break;
#endif // HOST_WINDOWS

#else // TARGET_UNIX
case IMAGE_FILE_MACHINE_I386:
ulExpectedPointerSize = 4;
Expand Down
4 changes: 4 additions & 0 deletions src/coreclr/inc/clrnt.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
(MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_CUSTOM_UNSPECIFIED), SORT_DEFAULT))
#endif // !SUBLANG_CUSTOM_DEFAULT

#ifndef IMAGE_FILE_MACHINE_RISCV64
#define IMAGE_FILE_MACHINE_RISCV64 0x5064 // RISCV64
#endif // !IMAGE_FILE_MACHINE_RISCV64

#ifndef __out_xcount_opt
#define __out_xcount_opt(var) __out
#endif
Expand Down

0 comments on commit a4d98aa

Please sign in to comment.