diff options
| author | Marti Alonso <41269236+martialonso@users.noreply.github.com> | 2025-09-22 22:56:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-22 13:56:24 -0700 |
| commit | 09bbc9944fdcc0c6fe2e78cd5da4ab0b9e99f68a (patch) | |
| tree | 85b8d898dbd0ce72754b889ed8689baa768ad714 | |
| parent | f349e0801e88757edfa1be4403c452766c65333c (diff) | |
| download | env-master.zip env-master.tar.gz env-master.tar.bz2 | |
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.h | 1 |
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: //----------------------------------------------------------------------- |
