Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RISC-V] coreclr-pal and coreclr-debug directories #82380

Merged
merged 10 commits into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[PAL] Update
  • Loading branch information
clamp03 committed Mar 21, 2023
commit b85140ccee08727bbe447e3a75463ec50958783f
8 changes: 4 additions & 4 deletions src/coreclr/debug/di/riscv64/floatconversion.S
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#include <unixasmmacros.inc>

// Arguments
// input: (in A0) the value to be converted to a double
// output: the double corresponding to the _NEON128 input value
// input: (in A0) the address of the ULONGLONG to be converted to a double
// output: the double corresponding to the ULONGLONG input value
LEAF_ENTRY FPFillR8, .TEXT
ld a0, 0(a0)
jalr x0, ra, 0
fld fa0, 0(a0)
ret
LEAF_END FPFillR8, .TEXT
4 changes: 2 additions & 2 deletions src/coreclr/pal/inc/rt/ntimage.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ typedef struct _IMAGE_FILE_HEADER {
#define IMAGE_FILE_MACHINE_ARM64 0xAA64 // ARM64 Little-Endian
#define IMAGE_FILE_MACHINE_CEE 0xC0EE
#define IMAGE_FILE_MACHINE_LOONGARCH64 0x6264 // LOONGARCH64.
#define IMAGE_FILE_MACHINE_RISCV64 0x5641 // RISCV64
#define IMAGE_FILE_MACHINE_RISCV64 0x5064 // RISCV64

//
// Directory format.
Expand Down Expand Up @@ -1022,7 +1022,7 @@ typedef IMAGE_RELOCATION UNALIGNED *PIMAGE_RELOCATION;
#define IMAGE_REL_LOONGARCH64_JIR 0x0004

//
// LOONGARCH64 relocation types
// RISCV64 relocation types
//
#define IMAGE_REL_RISCV64_PC 0x0003
#define IMAGE_REL_RISCV64_JALR 0x0004
Expand Down
13 changes: 13 additions & 0 deletions src/coreclr/pal/src/arch/riscv64/dispatchexceptionwrapper.S
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

//
// Implementation of the PAL_DispatchExceptionWrapper that is
// interposed between a function that caused a hardware fault
// and PAL_DispatchException that throws an SEH exception for
// the fault, to make the stack unwindable.
//

#include "unixasmmacros.inc"

// #error "TODO-RISCV64: missing implementation"