Commit graph

57 commits

Author SHA1 Message Date
Zihao Yu
493a0650ce native,ioe: add uart 2024-01-17 13:47:32 +08:00
Zihao Yu
81ac173949 sciprts,riscv32-nemu: remove 'e' in mabi 2024-01-17 13:47:10 +08:00
Zihao Yu
62ca04d426 riscv,npc,libgcc: fix compile error in clang 2024-01-17 13:46:38 +08:00
Zihao Yu
bcdbc4e249 klib,int64: remove unused code
* they are reported as error in clang
2024-01-17 13:46:31 +08:00
Zihao Yu
f198eb6073 riscv,nemu,trap: fix wrong register number 2024-01-17 13:46:13 +08:00
Zihao Yu
3ba0c6afd7 Makefile: remove redundant library dependency 2024-01-17 13:43:17 +08:00
Zihao Yu
3348db971f
Merge pull request #8 from Jasonyanyusong/master
am: fix riscv32-nemu's mabi
2023-08-29 16:00:59 +08:00
烟雨松 Yan Yusong
8878f1f6ce
am: fix riscv32-nemu's mabi 2023-08-29 14:43:20 +08:00
Zihao Yu
6c461b59db
Merge pull request #7 from Sin-kider/master
fix: Modify the register number into a macro definition
2023-08-08 18:02:21 +08:00
Sin_kider
b1586e0336 fix: Modify the register number into a macro definition 2023-08-08 16:56:21 +08:00
Zihao Yu
83ac97b4d9 tools: add scripts to generate memory image file in logisim 2023-07-02 14:29:39 +08:00
Zihao Yu
a4d3661c31 riscv32e-npc: add libgcc to support RVM with library 2023-07-02 14:29:39 +08:00
Zihao Yu
d341fb23a0 add riscv32e-npc 2023-07-02 14:29:39 +08:00
Zihao Yu
e0ae9b7651 am,include,arch: merge riscv*.h into riscv.h 2023-07-02 14:29:39 +08:00
Zihao Yu
ad8f8fb636 scripts,isa: merge riscv{32,64}.mk into riscv.mk 2023-07-02 14:29:17 +08:00
Zihao Yu
6d79d0efb0 Makefile: fix ar in macOS 2023-06-04 16:45:59 +08:00
Zihao Yu
21bfbcb293 am,native,platform: avoid linking ftruncate() to RT-Thread 2023-06-04 16:45:53 +08:00
Zihao Yu
e8943b31fc scripts,native: pass LDFLAGS to g++ 2023-06-04 16:45:50 +08:00
Zihao Yu
ea17990531
Merge pull request #4 from Zweisamkeiten/master
fix(am/src/native/ioe/gpu.c): Replace SDL_WINDOW_SHOWN flag with SDL_WINDOW_OPENGL
2023-03-17 23:45:11 +08:00
Einsam
ba5ba9838e fix(am/src/native/ioe/gpu.c): Replace SDL_WINDOW_SHOWN flag with SDL_WINDOW_OPENGL
1. SDL_WINDOW_SHOWN flag has removed after SDL2.26.1

    2. After sdl2-2.0.22-1, it causes the sdl window to randomly not appear
2023-03-17 22:49:47 +08:00
Zihao Yu
67699be876 am: add loongarch32r-nemu 2022-11-15 15:24:49 +08:00
Zihao Yu
ff88f398bc mips32-nemu: small refactor 2022-11-15 15:24:32 +08:00
Zihao Yu
5051c13e02 mips,start: leave space for exception handler at 0x80000180 2022-11-09 16:45:41 +08:00
Zihao Yu
e8f6374f4b native,platform: small refactor 2022-11-09 16:45:41 +08:00
Zihao Yu
ad9504123f scripts,riscv32: fix compile error by missing zicsr with latest gcc 2022-11-09 16:45:41 +08:00
Zihao Yu
31a5a10f48 scripts,linker.ld: supress waring about RWX segment from ld
* `xxx has a LOAD segment with RWX permissions`
2022-11-09 16:45:41 +08:00
Zihao Yu
024441cbed Makefile: supress warning about executable stack from ld 2.39
* `missing .note.GNU-stack section implies executable stack`
2022-11-09 16:45:41 +08:00
Zihao Yu
7c9b27be20 native,platform: relax the condition of checking sigal stack size 2022-07-29 16:11:02 +08:00
Zihao Yu
112799e02a native,platform: fix compile error on ubuntu 21.10
* The macro SIGSTKSZ expands to a function call in the latest version of
  glibc.
2022-03-08 11:14:38 +08:00
Zihao Yu
89939ad7a2 riscv64-npc: enable RVM 2022-02-20 19:17:10 +08:00
Zihao Yu
198ce90352 nemu: run with normal mode by default 2022-01-20 14:43:25 +08:00
Zihao Yu
d5fe878987 am,nemu: use standard debug instructions for nemu_trap 2022-01-19 20:15:12 +08:00
Zihao Yu
f9b9b390fb fix dead recursion when __NATIVE_USE_KLIB__ is defined 2021-10-20 14:17:36 +08:00
Zihao Yu
a873515bde Makefile: disable stack protector in Ubuntu 2021-08-27 11:24:07 +08:00
Zihao Yu
30e5cd0c7e ready for ics2021 2021-08-11 16:21:16 +08:00
Zihao Yu
3cf0ee6d42 add spike 2021-08-03 20:12:28 +08:00
Zihao Yu
3c2e025216 Makefile: fix cyclic linking dependency 2021-07-17 22:32:01 +08:00
Zihao Yu
3364f57d0b klib,int64: fix dead recursion for riscv64-mycpu
* symbols inside int64.c are local to __udivmoddi4
2021-07-17 21:53:21 +08:00
Zihao Yu
96f2923137
Merge pull request #1 from NJU-ProjectN/riscv64-mycpu
Riscv64 mycpu
2021-07-13 17:19:34 +08:00
Zihao Yu
01d76dd0d5 riscv64-mycpu: pass compilation of am-tests 2021-07-13 16:59:47 +08:00
Zihao Yu
07eb9ba416 klib: move muldi3.S and div.S to riscv64-mycpu
* they will cause compile error with other ARCHs
2021-07-13 16:41:40 +08:00
Zihao Yu
17037fabb0 am,mycpu: refactor directory structure 2021-07-13 16:20:49 +08:00
181250012-Chen Lu
1a4ad39176 add riscv64-mycpu 2021-07-13 16:00:11 +08:00
Zihao Yu
a94708b3b5 2021 pre-release 2021-07-13 15:53:57 +08:00
Zihao Yu
11059d5b6f add riscv64-nemu 2021-05-03 16:51:02 +08:00
Zihao Yu
e4e5d03fa6 native,ioe,gpu: support 800x600 mode 2021-01-10 18:25:16 +08:00
Zihao Yu
18995de269 native,platform: remove pmem protection to improve performance 2021-01-10 16:43:38 +08:00
Zihao Yu
39b2c4350d native,platform: move heap.start to 0x1000000
* This allows using some part of the heap even the user program is
  loaded to 0x3000000, where VME is disabled.
2020-12-09 13:33:56 +08:00
Zihao Yu
66dcd98e39 native,platform: clear the FPU context in uc_example
* This will fix the SIGSEGV sent by 4.19 kernel. It seems the cause is
  that a page fault is generated when restoring the FPU context with an
  fxrstor64 instruction. To work around, we just clear the FPU context
  in uc_example, so the kernel will not try to restore the FPU context.
2020-12-06 23:19:05 +08:00
Zihao Yu
55ef7b162d x86-nemu,trap: remove unused usp 2020-10-29 12:03:15 +08:00