summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Alonso <41269236+martialonso@users.noreply.github.com>2025-09-22 22:56:24 +0200
committerGitHub <noreply@github.com>2025-09-22 13:56:24 -0700
commit09bbc9944fdcc0c6fe2e78cd5da4ab0b9e99f68a (patch)
tree85b8d898dbd0ce72754b889ed8689baa768ad714
parentf349e0801e88757edfa1be4403c452766c65333c (diff)
downloadenv-master.zip
env-master.tar.gz
env-master.tar.bz2
Test code should go to .text section not .text.init (#50)HEADmaster
For the environments without virtual memory, test code would go to the .text.init section, which doesn't cause any functional issue but would make the tohost/fromhost address non-deterministic since some tests occupy more than one page.
-rw-r--r--p/riscv_test.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/p/riscv_test.h b/p/riscv_test.h
index 3d4637a..d5320a8 100644
--- a/p/riscv_test.h
+++ b/p/riscv_test.h
@@ -246,6 +246,7 @@ reset_vector: \
csrw mepc, t0; \
csrr a0, mhartid; \
mret; \
+ .section .text; \
1:
//-----------------------------------------------------------------------