52 Commits

Author SHA1 Message Date
Fernando Lemos
56ba49be40 Add a link to GitHub Actions 2020-05-25 18:07:21 +02:00
Fernando Lemos
f3edc89fd9 Switch away from Travis CI 2020-05-23 12:26:06 +02:00
Fernando Lemos
78b884b039 Add an experimental GitHub Actions workflow 2020-05-23 12:23:20 +02:00
Fernando Lemos
8f664e25d3 Specify a more modern macOS image to fix Travis builds
As Homebrew is currently refusing to install packages in the older
images which are still the default for Travis.
2019-08-17 16:58:31 +02:00
Fernando Lemos
9da2c8899e Replace reference to "riscvemu" in temu --help 2019-07-18 21:07:59 +02:00
Fernando Lemos
fc1b9fac51 Revert whitespace changes
Make it easier to integrate upstream changes.
2019-07-18 21:05:47 +02:00
Fernando Lemos
50332675a0 Add missing dependency to Travis configuration 2019-04-05 20:36:33 +02:00
Fernando Lemos
7d45f51ad4 Use res_getservers instead of reading resolv.conf
resolv.conf isn't available on iOS devices, for instance. Keep
using resolv.conf on Linux, though, as it looks like res_getservers
isn't available.
2019-04-05 20:35:47 +02:00
Fernando Lemos
5430733eca Update README.md 2019-04-01 10:55:07 +02:00
Fernando Lemos
7ae298d331 Fix linking errors 2019-03-31 21:40:49 +02:00
Fernando Lemos
be6563b130 Initialize bios_base for binary BIOS files 2019-03-31 21:38:09 +02:00
Fernando Lemos
6a13d57171 Add compressed initramfs support 2019-03-31 21:34:28 +02:00
Fernando Lemos
9c02543e80 Add include guards in elf.h 2019-03-31 19:57:20 +02:00
Fernando Lemos
e45b5a16d5 Add initrd support 2019-03-31 19:38:07 +02:00
Fernando Lemos
69da8c5f78 Specify the path to the OpenSSL libs too
Should fix build on macOS 10.14.4.
2019-03-29 08:19:26 +01:00
Fernando Lemos
0b29357eeb Always allow ^C when using a display device 2019-03-29 08:15:07 +01:00
Fernando Lemos
465defef96 Create the console device even when using SDL
Or we'll crash when the guest tries to write to the console. (The
alternative would be not creating the console and not crashing, but
I don't see why we wouldn't want to have the console as well.)
2019-03-29 08:10:47 +01:00
Fernando Lemos
a7d05d84ab Define console_get_size externally on iOS
This is a quick, non-intrusive hack. The ideal solution would be
making the console more modular so we could have a special console
driver for iOS.
2019-03-28 09:26:20 +01:00
Fernando Lemos
35b4716ba6 Embed Bitcode when building for iOS devices 2019-03-26 08:19:55 +01:00
Fernando Lemos
0a9cf29ad7 Simplify and optimize Travis config 2019-03-25 07:39:45 +01:00
Fernando Lemos
40db8a326b Set up Travis to build iOS targets 2019-03-24 17:23:11 +01:00
Fernando Lemos
727ac8cb0e Build a static library for iOS 2019-03-24 17:11:38 +01:00
Fernando Lemos
8ee2a3e76c Allow building for the iOS simulator as well 2019-03-24 16:59:48 +01:00
Fernando Lemos
92880025e9 Add support for building for iOS 2019-03-24 16:52:43 +01:00
Fernando Lemos
e871561308 Set up Travis to build using Emscripten as well 2019-03-24 16:08:56 +01:00
Jim Huang
e3c61f8058 Fix Emscripten build 2019-03-24 15:57:42 +01:00
Jim Huang
cd86ae5534 Optimize ctz32 2019-03-23 20:19:56 +01:00
Fernando Lemos
e96e1415fb Load the HTIF base address from the ELF file 2019-03-18 01:40:14 +01:00
Fernando Lemos
3f03d10276 Load ELF BBL images as well
Though we don't account for the HTIF section yet.
2019-03-17 20:32:59 +01:00
Fernando Lemos
369aa05d1f Fix build with gcc 2019-03-17 18:56:27 +01:00
Fernando Lemos
b2f17de6a9 Add very basic ELF loading support for kernel images
Not good enough for loading an unpatched BBL yet, though.
2019-03-17 18:53:11 +01:00
Fernando Lemos
3d10527cba Use OSSwapInt32 for byte swapping on macOS 2019-03-17 17:18:19 +01:00
Fernando Lemos
be26da7a8d Clean up whitespace 2019-03-15 20:11:02 +01:00
Fernando Lemos
033ef3159a Fix format warnings with gcc 2019-03-14 19:59:08 +01:00
Fernando Lemos
983b1c80d9 Add Travis badge to README.md 2019-03-14 19:18:11 +01:00
Fernando Lemos
aef16ddc25 Fix build with SDL <2.0.6 2019-03-14 19:12:23 +01:00
Fernando Lemos
8cbef22088 Clean up whitespace 2019-03-14 19:12:12 +01:00
Fernando Lemos
5187c98ad6 Add Travis configuration 2019-03-14 19:00:18 +01:00
Fernando Lemos
fac13bb698 Update the texture only once per refresh
Probably performs better.
2019-02-27 09:57:16 +01:00
Fernando Lemos
bccc0f6cb5 Replace the README with a simpler version
Also more incomplete.
2019-02-27 00:42:16 +01:00
Fernando Lemos
ec56b6b5ec Revert Makefile to something closer to the original 2019-02-26 23:45:55 +01:00
Fernando Lemos
c954213439 Translate SDL scancodes to evdev keycodes
Fixes keyboard input on the Mac.
2019-02-26 21:41:03 +01:00
Fernando Lemos
28044fa2fa Fix warnings building with clang 2019-02-26 20:26:43 +01:00
Fernando Lemos
77e3ab593c Update .gitignore 2019-02-26 20:09:50 +01:00
Fernando Lemos
aef10a5641 Fix building build_filelist 2019-02-26 20:09:39 +01:00
Fernando Lemos
a1a8507a1a Fix fs_stat to use macOS's fields 2019-02-26 20:07:00 +01:00
Fernando Lemos
227f78cc41 Enable SLIRP by default 2019-02-26 19:08:26 +01:00
Fernando Lemos
036f3ce169 Convert to SDL 2
The framebuffer seems to work on the Mac now.
2019-02-26 18:04:06 +01:00
Fernando Lemos
48b4dec559 Add a .gitignore file 2019-02-26 11:44:51 +01:00
Fernando Lemos
5336818789 Re-enable the console 2019-02-26 11:43:13 +01:00