Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Add support for the "E" extension #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
11 changes: 7 additions & 4 deletions src/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ _abs_start:
// a0..a2 (x10..x12) skipped
li x13, 0
li x14, 0
li x15, 0
li x16, 0
li x15, 0",

// Since RV{32, 64}E only has registers x0 to x15, do not reset registers x16 .. x31 on RV{32, 64}E platforms.
#[cfg(not(target_feature = "e"))]
"li x16, 0
li x17, 0
li x18, 0
li x19, 0
Expand All @@ -80,9 +83,9 @@ _abs_start:
li x28, 0
li x29, 0
li x30, 0
li x31, 0
li x31, 0",

.option push
".option push
.option norelax
la gp, __global_pointer$
.option pop",
Expand Down
Loading