Commit graph

  • bee38ce935 Revert "Attempt to add coverage badge" Toby Jaffey 2025-12-13 20:14:10 +00:00
  • 6a2bfceabc Attempt to add coverage badge Toby Jaffey 2025-12-13 20:02:21 +00:00
  • 6434f0b0cb Smoke test of getProgramCounter Toby Jaffey 2025-12-13 19:21:05 +00:00
  • 5667598427 Test uvm32_getMemory() in a tautological manner Toby Jaffey 2025-12-13 19:19:39 +00:00
  • 99c0925db5 Test for invalid uvm32_arg_t Toby Jaffey 2025-12-13 19:17:58 +00:00
  • 59ade881c3 uvm32_hasEnded() test Toby Jaffey 2025-12-13 19:15:06 +00:00
  • 0018bdd249 Add test of reading cstring syscall argument which never terminates before hitting end of ram Toby Jaffey 2025-12-13 19:12:24 +00:00
  • b1b4cbf583 Fix bug where memory was being used instead of extram when reading cstring from extram Toby Jaffey 2025-12-13 18:46:28 +00:00
  • 8a0604fc8d abs path Toby Jaffey 2025-12-13 18:22:02 +00:00
  • faab397178 Remove accidental make clean on tests Toby Jaffey 2025-12-13 18:16:00 +00:00
  • d72955690f Add test for extram being removed then invalid pointer being followed Toby Jaffey 2025-12-13 18:10:50 +00:00
  • 5b33478cad Coverage path Toby Jaffey 2025-12-13 18:10:32 +00:00
  • c5470bc279 YAML hell Toby Jaffey 2025-12-13 18:05:40 +00:00
  • 92913ab478 Add test for reading code which is too large Toby Jaffey 2025-12-13 18:02:43 +00:00
  • f2c903cfb6 Coverage wildcard Toby Jaffey 2025-12-13 17:59:40 +00:00
  • a9af18488e Merge branch 'main' of github.com:ringtailsoftware/uvm32 Toby Jaffey 2025-12-13 17:54:47 +00:00
  • 2e1f4d3f93 Generate coverage report Toby Jaffey 2025-12-13 17:53:55 +00:00
  • 1e5555f66d Unify all tests to use same common makefile includes Toby Jaffey 2025-12-13 17:27:24 +00:00
  • 903167231f Fix internal memcpy/memset to have standard libc prototypes Toby Jaffey 2025-12-13 15:52:27 +00:00
  • 125c79176e Move section Toby Jaffey 2025-12-12 21:56:20 +00:00
  • f8f7627eb8 Update README. Add license Toby Jaffey 2025-12-12 21:50:33 +00:00
  • 789cd74516 Disable stack canary by default Toby Jaffey 2025-12-12 21:01:40 +00:00
  • 3ecd16c8bf Update links Toby Jaffey 2025-12-12 20:52:54 +00:00
  • 8c97057809 Make extram uint8_t Toby Jaffey 2025-12-12 20:51:39 +00:00
  • 8158ac647c Renaming and documentating header Toby Jaffey 2025-12-12 20:42:26 +00:00
  • 9880eadf4f Markdown fix Toby Jaffey 2025-12-12 16:54:28 +00:00
  • e5581f1c27 Organise list Toby Jaffey 2025-12-12 16:52:31 +00:00
  • 4dad76be61 Split docs Toby Jaffey 2025-12-12 16:43:00 +00:00
  • 147a9f2198 Split includes. All code needs uvm32_sys.h, but uvm32_common_custom.h is optional (and has defs needed for demos) Toby Jaffey 2025-12-12 15:56:47 +00:00
  • ef948e9797 Move target app only includes under apps/common Toby Jaffey 2025-12-12 15:49:03 +00:00
  • 5bd6a32013 Move all app common files under apps/common Toby Jaffey 2025-12-12 15:45:17 +00:00
  • 60f362b819 h2 Toby Jaffey 2025-12-12 15:06:03 +00:00
  • e903e8271b Explanation Toby Jaffey 2025-12-12 15:05:34 +00:00
  • 3722e4c267 Cleanup Toby Jaffey 2025-12-12 15:02:20 +00:00
  • bba5fa654c Fix off-by-one error which refused to read final byte of extram Toby Jaffey 2025-12-12 15:01:56 +00:00
  • cb717ed108 use only the amount of extram needed Toby Jaffey 2025-12-12 15:01:30 +00:00
  • 74267d94df Handle syscall cstring argument when pointing to extram Toby Jaffey 2025-12-12 14:45:25 +00:00
  • ce63353156 Update makefile Toby Jaffey 2025-12-12 14:29:50 +00:00
  • 096efb3b2c Remove unused var Toby Jaffey 2025-12-12 14:26:30 +00:00
  • ed57b62f79 Add render and getkey syscalls, for host-sdl use. Toby Jaffey 2025-12-12 14:25:01 +00:00
  • 9836500503 Handle mapping a buffer to extram Toby Jaffey 2025-12-12 14:24:34 +00:00
  • 238b4c5fcf Update for new sdl-host Toby Jaffey 2025-12-12 14:23:55 +00:00
  • 8598be727f Provide a framebuffer 320x200 (RGBA8888) on render(addr,len) syscall, copy from that VM memory location to framebuffer. Toby Jaffey 2025-12-12 14:22:42 +00:00
  • 2108083b75 Only send syscall every other frame, which makes VM stop to draw Toby Jaffey 2025-12-12 00:03:33 +00:00
  • 2d07f6fcc0 Munching squares Toby Jaffey 2025-12-11 23:53:43 +00:00
  • e7485d5972 SDL based host with extram mapped to framebuffer and simple gfx app to accompany it Toby Jaffey 2025-12-11 23:31:10 +00:00
  • 577aaadacd Zig allocator demo, using extram Toby Jaffey 2025-12-11 21:18:21 +00:00
  • a5018dab2f Fix path Toby Jaffey 2025-12-11 20:53:56 +00:00
  • 1eb03f1747 Fix path Toby Jaffey 2025-12-11 20:53:03 +00:00
  • 5fc4575888 Add precompiled heap example Toby Jaffey 2025-12-11 20:37:33 +00:00
  • dc93c314e6 Add uintptr_t Toby Jaffey 2025-12-11 20:36:49 +00:00
  • 447af909c2 Add memtest and heap examples to build Toby Jaffey 2025-12-11 20:36:17 +00:00
  • dae3c272d4 Install bc in docker, used for arithmetic in makefiles Toby Jaffey 2025-12-11 20:35:56 +00:00
  • 42cd77a9ff Cleanup paths Toby Jaffey 2025-12-11 20:35:39 +00:00
  • f27ed6213c Example of setting up malloc heap on extram Toby Jaffey 2025-12-11 20:35:11 +00:00
  • 7fae8c129f Zero extram on startup. On crash, dump extram to file Toby Jaffey 2025-12-11 17:48:00 +00:00
  • 0ded19d04a Basic memory test Toby Jaffey 2025-12-11 17:46:20 +00:00
  • 6878c5210f Fix weird definition of NULL Toby Jaffey 2025-12-11 16:57:23 +00:00
  • 9287d7f6f4 Fix Dockerfile env Toby Jaffey 2025-12-11 16:08:21 +00:00
  • d8fc42a546 More broken links Toby Jaffey 2025-12-11 15:48:32 +00:00
  • ece3c8766f Fix links Toby Jaffey 2025-12-11 15:46:43 +00:00
  • 67e8fe13c0 Add commandline parsing to host. Add -e <size in bytes> option to configure extram. Toby Jaffey 2025-12-11 15:44:17 +00:00
  • 93085f562c Clearer at small size Toby Jaffey 2025-12-11 13:50:55 +00:00
  • 3f21335fc3 Test that repeatedly stopping and starting results in executing exactly the same number of VM instructions Toby Jaffey 2025-12-11 13:16:46 +00:00
  • da7f186ff7 Missing files Toby Jaffey 2025-12-11 13:03:40 +00:00
  • 7353810199 Move all host examples under host/ Toby Jaffey 2025-12-11 12:57:59 +00:00
  • 1213c5673f Do .bin inclusion in C code at build Toby Jaffey 2025-12-11 12:48:41 +00:00
  • 809f8ce115 Add link nearer top Toby Jaffey 2025-12-11 12:17:49 +00:00
  • 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 Toby Jaffey 2025-12-11 12:15:19 +00:00
  • 6b2063c6ab Build arduino code (for AVR) and allow test in qemu Toby Jaffey 2025-12-11 11:53:23 +00:00
  • 7c9d56ee69 Add fib to apps makefile Toby Jaffey 2025-12-11 11:52:42 +00:00
  • 978ddb52f0 Fix memory size in extram test Toby Jaffey 2025-12-11 11:16:46 +00:00
  • 9ca720d35c auto-generate Arduino example, to keep in sync Toby Jaffey 2025-12-11 11:05:44 +00:00
  • 7a1656ab10 Handle 8, 16 and 32 bit accesses to extram. Toby Jaffey 2025-12-11 10:33:45 +00:00
  • 63386f9a92 Missing header Toby Jaffey 2025-12-11 02:40:30 +00:00
  • b55c2bc88a Add system for memory mapping a block of memory from the host. Toby Jaffey 2025-12-11 02:36:46 +00:00
  • 8802b4c268 Maze works at -O2 with -fpeel-loops Toby Jaffey 2025-12-11 01:33:04 +00:00
  • a55300c8c3 Updated maze binary Toby Jaffey 2025-12-11 01:11:41 +00:00
  • 58f8caee5a Prevent gcc converting block copies/sets to memcpy() and memset(), which don't exist. Toby Jaffey 2025-12-11 01:10:55 +00:00
  • 59e6ebfedf Show pc on error Toby Jaffey 2025-12-11 01:10:12 +00:00
  • 1fa58ed800 On crash, dump the entire memory to a file Toby Jaffey 2025-12-11 00:22:19 +00:00
  • 15806b592b Rebuilt binaries Toby Jaffey 2025-12-11 00:01:03 +00:00
  • 3e7b7cea4d Round power of 2 for memory size Toby Jaffey 2025-12-11 00:00:01 +00:00
  • e0eb6615c0 maze crashes at high optimisation level, when "maze" variable gets memset Toby Jaffey 2025-12-10 23:59:11 +00:00
  • 23fc50c820 Unused. Toby Jaffey 2025-12-10 23:58:43 +00:00
  • 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 Toby Jaffey 2025-12-10 23:27:24 +00:00
  • ac1975a820 Test metering, prove that system can resume after a hang error with a range of meter sizes Toby Jaffey 2025-12-10 22:30:19 +00:00
  • 9d9e7542fc Test parsing of syscall args, and responses to invalid behaviour Toby Jaffey 2025-12-10 22:29:33 +00:00
  • 46b6d1efba Ensure make errors when a test fails Toby Jaffey 2025-12-10 19:27:39 +00:00
  • 30b7ff4791 custom syscall example Toby Jaffey 2025-12-10 18:52:01 +00:00
  • 508d41c8c5 Remove stackoverflow error, have one CORE_INTERNAL error for catastrophic crash Toby Jaffey 2025-12-10 18:42:34 +00:00
  • 59f5d6449b Non-interactive shell for docker build Toby Jaffey 2025-12-10 16:40:56 +00:00
  • 1087a1a44f Only test on linux Toby Jaffey 2025-12-10 16:39:17 +00:00
  • c8cb3ed106 Add Dockerfile Toby Jaffey 2025-12-10 16:38:22 +00:00
  • da7f70c456 Initial test framework Clean up makefiles Everything buildable under docker (or natively) Toby Jaffey 2025-12-10 16:36:33 +00:00
  • 5a0c70a017 Anti-crash goal Toby Jaffey 2025-12-10 11:07:24 +00:00
  • 47fd83ed4c Add yield Toby Jaffey 2025-12-10 11:05:22 +00:00
  • b4f170b6b6 Fix links Toby Jaffey 2025-12-10 11:03:28 +00:00
  • a027c3fe7f Why? Toby Jaffey 2025-12-10 10:59:35 +00:00
  • 28135f3005 Update yield info Toby Jaffey 2025-12-10 10:48:01 +00:00