Commit graph

167 commits

Author SHA1 Message Date
Toby Jaffey
dae3c272d4 Install bc in docker, used for arithmetic in makefiles 2025-12-11 20:35:56 +00:00
Toby Jaffey
42cd77a9ff Cleanup paths 2025-12-11 20:35:39 +00:00
Toby Jaffey
f27ed6213c Example of setting up malloc heap on extram 2025-12-11 20:35:11 +00:00
Toby Jaffey
7fae8c129f Zero extram on startup.
On crash, dump extram to file
2025-12-11 17:48:00 +00:00
Toby Jaffey
0ded19d04a Basic memory test 2025-12-11 17:46:20 +00:00
Toby Jaffey
6878c5210f Fix weird definition of NULL 2025-12-11 16:57:23 +00:00
Toby Jaffey
9287d7f6f4 Fix Dockerfile env 2025-12-11 16:08:21 +00:00
Toby Jaffey
d8fc42a546 More broken links 2025-12-11 15:48:32 +00:00
Toby Jaffey
ece3c8766f Fix links 2025-12-11 15:46:43 +00:00
Toby Jaffey
67e8fe13c0 Add commandline parsing to host. Add -e <size in bytes> option to configure extram. 2025-12-11 15:44:17 +00:00
Toby Jaffey
93085f562c Clearer at small size 2025-12-11 13:50:55 +00:00
Toby Jaffey
3f21335fc3 Test that repeatedly stopping and starting results in executing exactly the same number of VM instructions 2025-12-11 13:16:46 +00:00
Toby Jaffey
da7f186ff7 Missing files 2025-12-11 13:03:40 +00:00
Toby Jaffey
7353810199 Move all host examples under host/ 2025-12-11 12:57:59 +00:00
Toby Jaffey
1213c5673f Do .bin inclusion in C code at build 2025-12-11 12:48:41 +00:00
Toby Jaffey
809f8ce115 Add link nearer top 2025-12-11 12:17:49 +00:00
Toby Jaffey
df7b8fe70f Footprint calculations done by building an empty sketch for an Arduino then comparing to a (no io) VM sketch.
arduino-cli compile -b STMicroelectronics:stm32:GenL0 -e
2025-12-11 12:15:19 +00:00
Toby Jaffey
6b2063c6ab Build arduino code (for AVR) and allow test in qemu 2025-12-11 11:53:23 +00:00
Toby Jaffey
7c9d56ee69 Add fib to apps makefile 2025-12-11 11:52:42 +00:00
Toby Jaffey
978ddb52f0 Fix memory size in extram test 2025-12-11 11:16:46 +00:00
Toby Jaffey
9ca720d35c auto-generate Arduino example, to keep in sync 2025-12-11 11:05:44 +00:00
Toby Jaffey
7a1656ab10 Handle 8, 16 and 32 bit accesses to extram. 2025-12-11 10:33:45 +00:00
Toby Jaffey
63386f9a92 Missing header 2025-12-11 02:40:30 +00:00
Toby Jaffey
b55c2bc88a Add system for memory mapping a block of memory from the host. 2025-12-11 02:36:46 +00:00
Toby Jaffey
8802b4c268 Maze works at -O2 with -fpeel-loops 2025-12-11 01:33:04 +00:00
Toby Jaffey
a55300c8c3 Updated maze binary 2025-12-11 01:11:41 +00:00
Toby Jaffey
58f8caee5a Prevent gcc converting block copies/sets to memcpy() and memset(), which don't exist. 2025-12-11 01:10:55 +00:00
Toby Jaffey
59e6ebfedf Show pc on error 2025-12-11 01:10:12 +00:00
Toby Jaffey
1fa58ed800 On crash, dump the entire memory to a file 2025-12-11 00:22:19 +00:00
Toby Jaffey
15806b592b Rebuilt binaries 2025-12-11 00:01:03 +00:00
Toby Jaffey
3e7b7cea4d Round power of 2 for memory size 2025-12-11 00:00:01 +00:00
Toby Jaffey
e0eb6615c0 maze crashes at high optimisation level, when "maze" variable gets memset 2025-12-10 23:59:11 +00:00
Toby Jaffey
23fc50c820 Unused. 2025-12-10 23:58:43 +00:00
Toby Jaffey
b83fc74c8d Align stack pointer to 16 bytes, needed if UVM32_MEMORY_SIZE is not multiple of 16.
On memory rd trap, set appropriate error code
2025-12-10 23:27:24 +00:00
Toby Jaffey
ac1975a820 Test metering, prove that system can resume after a hang error with a range of meter sizes 2025-12-10 22:30:19 +00:00
Toby Jaffey
9d9e7542fc Test parsing of syscall args, and responses to invalid behaviour 2025-12-10 22:29:33 +00:00
Toby Jaffey
46b6d1efba Ensure make errors when a test fails 2025-12-10 19:27:39 +00:00
Toby Jaffey
30b7ff4791 custom syscall example 2025-12-10 18:52:01 +00:00
Toby Jaffey
508d41c8c5 Remove stackoverflow error, have one CORE_INTERNAL error for catastrophic crash 2025-12-10 18:42:34 +00:00
Toby Jaffey
59f5d6449b Non-interactive shell for docker build 2025-12-10 16:40:56 +00:00
Toby Jaffey
1087a1a44f Only test on linux 2025-12-10 16:39:17 +00:00
Toby Jaffey
c8cb3ed106 Add Dockerfile 2025-12-10 16:38:22 +00:00
Toby Jaffey
da7f70c456 Initial test framework
Clean up makefiles
Everything buildable under docker (or natively)
2025-12-10 16:36:33 +00:00
Toby Jaffey
5a0c70a017 Anti-crash goal 2025-12-10 11:07:24 +00:00
Toby Jaffey
47fd83ed4c Add yield 2025-12-10 11:05:22 +00:00
Toby Jaffey
b4f170b6b6 Fix links 2025-12-10 11:03:28 +00:00
Toby Jaffey
a027c3fe7f Why? 2025-12-10 10:59:35 +00:00
Toby Jaffey
28135f3005 Update yield info 2025-12-10 10:48:01 +00:00
Toby Jaffey
f4cccc8853 Simple build check 2025-12-10 10:44:19 +00:00
Toby Jaffey
e07eeab043 Make yield a regular syscall taking an argument.
Allows "wait for interrupt"/"wait for event" type operation where VM code blocks until the host has something for it.
2025-12-10 10:35:18 +00:00