189 Commits

Author SHA1 Message Date
Ciro Santilli
421ea06ff8 str lambda clean on common 2025-05-09 16:34:16 +01:00
Ciro Santilli
cfa2e5ab04 Implement a minimum linux version build mechanism
We were about to use it for scull.c when we found a way to fix its build
intsead.
2025-05-09 16:16:55 +01:00
Ciro Santilli
ea7275d35b Add a simplified linux worktree mechanism
Also fix two invalid regex escape warnings on python 3.12.7.
2025-05-01 12:23:33 +01:00
Ciro Santilli
0848a68a5a make china_dictatorship import optional lets not blow up people who forgot venv just in case 2025-04-28 10:38:51 +01:00
Ciro Santilli
ed3bd763af docker: fix fatal: unsafe repository 2022-04-24 09:01:47 +01:00
Ciro Santilli
2b436adf36 split header 2021-07-27 16:52:31 +01:00
Ciro Santilli 六四事件 法轮功
c7d1528bd7 properly document the china option 2021-04-03 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
d769513efc Fix ./build-m5 "Do not know how to make File target `build/aarch64/out/m5'"
The correct m5 target is: submodules/gem5/util/m5/build/arm64/out/m5, but
we were using submodules/gem5/util/m5/build/aarch6/out/m5 instead,
presumably this changed on some gem5 version update, and we didn't notice
because artifacts were leftover in the repo due to in-tree build.

Thanks for EE415-20170470 for proposing the patch at:
https://github.com/cirosantilli/linux-kernel-module-cheat/issues/145#issuecomment-787219330

Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/145
2021-03-25 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
956adffe40 Make the most important dependency mandatory 2021-03-25 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
6efe2fb4e1 fix kernel version in common.py 2021-02-20 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
cf371fed13 fix ./build-qemu --clean
Was failing with:

```
TypeError: clean_pre() takes 1 positional argument but 2 were given
```
2021-01-04 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
39073519b1 GoogleTest hello world.
./build and ./test work automatically when cwd is inside userland/libs/XXX
without --package-all.
2020-11-25 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
2abb994752 stuff 2020-11-20 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
5c4683d3d3 linux: update to v5.9.2
buildroot: update to 2020.08.1
2020-10-30 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
196d5be280 Allow a custom disk image 2020-10-27 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
af92b11f82 gem5 eclipse save and restore config files 2020-10-14 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
066c717aad gem5: use lld as the default linker 2020-10-12 02:00:01 +00:00
Ciro Santilli 六四事件 法轮功
584a90eae2 Docker: start migrating to 20.04
Still failing with:

Traceback (most recent call last):
  File "util/cpt_upgrader.py", line 73, in <module>
    from six.moves import configparser
ImportError: No module named six.moves

Also fix some issues noticed:

- userland/c/atomic was not ignoring arch specific examples
- ./build would not stop on the first error, now it does
- add libhdf5-dev as a dependency of gem5
2020-09-15 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
f292401eee Update build-m5 to the new scons build system
Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/128
2020-09-15 02:00:01 +00:00
Ciro Santilli 六四事件 法轮功
4f82f79be7 readme: underscore to - on all title ids 2020-08-13 02:00:01 +00:00
Ciro Santilli 六四事件 法轮功
2e47f4f894 Greatly improve Add new files to the Buildroot image 2020-08-13 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
b5d6fcd7d8 Coremark: start
Fix --emulator native.

Add baremetal/arch/aarch64/contextidr_el1.c
2020-07-24 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
fef0b24025 improve documentation of optimization level of the build 2020-06-25 08:00:07 +00:00
Ciro Santilli 六四事件 法轮功
49117d3c1c disas works with the linux kernel, it's beautiful 2020-06-25 07:00:06 +00:00
Ciro Santilli 六四事件 法轮功
e658498578 disas 2020-06-25 06:00:05 +00:00
Ciro Santilli 六四事件 法轮功
7d32b26fde gem5 arm cli args not working 2020-06-16 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
a2ce410173 fix test running after multi userland args change for gem5 2020-06-03 03:00:02 +00:00
Ciro Santilli 六四事件 法轮功
695bdaa486 --print-cmd-oneline 2020-05-07 03:00:02 +00:00
Ciro Santilli 六四事件 法轮功
f5d4998ff5 gem5: expose syscall emulation multiple executables 2020-04-29 03:00:02 +00:00
Ciro Santilli 六四事件 法轮功
1c04136497 gem5 X86: fix Exception: unknown machine: TODO 2020-04-06 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
c0bc5cffed pass disk image to baremetal if present
Why not? But this is mostly a cheap workaround for gem5 baremetal not
handling no disk images.
2020-04-03 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
66473201eb dhrystone baremetal!!!
Factor out --optimization-level and --static to all builds

More conventionally set argv[0] to be the basename of the image.

Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/90
2020-04-02 03:00:02 +00:00
Ciro Santilli 六四事件 法轮功
b7887ac06b gem5 baremetal cli!!!
Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/67
2020-04-02 02:00:01 +00:00
Ciro Santilli 六四事件 法轮功
637ef640bf qemu-baremetal-cli-args
QEMU part done https://github.com/cirosantilli/linux-kernel-module-cheat/issues/67
2020-04-02 01:00:00 +00:00
Ciro Santilli 六四事件 法轮功
112be2fa50 Also don't make china_dictatorship mandatory to run. 2020-03-30 02:00:01 +00:00
Ciro Santilli 六四事件 法轮功
e1d0a2fafb userland/freestanding/gem5_* work on baremetal
Remove all the duplicates of those present throughout the tree.
2020-03-26 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
082166a360 have fun 2020-03-18 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
33f9862974 gem5: benchmark hdf5 stats 2020-03-16 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
44a45c0656 out/run.sh: write before execution 2020-03-14 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
5d08bfeeb2 ./build-buildroot --build-linux: move up and notice broken
Then dream a bit and give more rationale on Buildroot.
2020-03-13 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
d1be4b2386 Allow extra make args to ./build-qemu -- arg0 arg1
configure args are now ./build-qemu --extra-config-args '"aa a" bb'

Also factor out arg names with other builds through _add_argument.

Fix #113.
2020-03-06 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
8a2cad195b gem5: update to 4c8efdbef45d98109769cf675ee3411393e8ed06
The Linux boot was still broken after the previous gem5 update. Let's try
a new one...

Add the --no-ccache option to benchmark builds.
2020-02-26 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
0fdd354551 gem5: gem-regression downloads test binaries to a fixed location outside of source tree with the newly added --bin-path option
Otherwise each --gem5-worktree would download its own copy of the test
binaries into its own source tree.
2020-02-23 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
7fbce888cf hdf5 2020-02-22 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
e33f6d5bf9 gem5: allow prof and perf builds, and comment on them 2020-02-18 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
f2713e69f6 Don't pass dummy disk images to gem5
After https://gem5.atlassian.net/browse/GEM5-337:

- gem5 baremetal can run without any disk images, just like QEMU
- gem5 X86 can run with a single disk image and no horrendous dummy vmlinux
  and second disk image
2020-02-14 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
17fba4a968 gem5: update to 1db7ecb4ce46e4ea525e6564032b4486c72c1c41
M5_PATH is not needed anymore, get rid of it!
2020-02-13 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
0bc76fc582 gem5: bring fast build back to life and benchmark it on busy loop 2020-01-22 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
fbc757aa57 common: update userland kernel version to 5.4.3, had forgotten it on kernel module update 2020-01-14 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
ae758f589a boost: start 2020-01-08 00:00:01 +00:00