Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QEMU for RISC-V lbForth #95

Closed
Phi-Ho opened this issue Nov 24, 2020 · 9 comments
Closed

QEMU for RISC-V lbForth #95

Phi-Ho opened this issue Nov 24, 2020 · 9 comments

Comments

@Phi-Ho
Copy link

Phi-Ho commented Nov 24, 2020

Hello,

Now that I got qemu-system-riscv32.exe and qemu-system-riscv64.exe, which emulator (elf file and command line to invoke qemu) is needed to properly run RISC-V lbForth

Thanks for sharing.

Regards,

phiho

@larsbrinkhoff
Copy link
Owner

I believe you should use qemu-user-riscv32, but since I don't have this set up properly now I'm not sure.

@Phi-Ho
Copy link
Author

Phi-Ho commented Nov 24, 2020 via email

@larsbrinkhoff
Copy link
Owner

Yes. I built it now and ran the tests successfully. Attaching a zip file.
riscv.zip

@Phi-Ho
Copy link
Author

Phi-Ho commented Nov 24, 2020 via email

@larsbrinkhoff
Copy link
Owner

I built it like this, in two steps:

make clean all TARGET=x86 OS=linux
make TARGET=riscv OS=linux

If your host is Windows, use OS=windows on the first line instead.

@larsbrinkhoff
Copy link
Owner

QEMU isn't needed for building a target Forth. It's just needed for running of testing the target.

@Phi-Ho
Copy link
Author

Phi-Ho commented Nov 25, 2020 via email

@larsbrinkhoff
Copy link
Owner

The test are run with "make check TARET=riscv OS=linux". The RISC-V binary is run using the script targets/riscv/run.sh. As you can see, you will need something like riscv32-linux-user/qemu-riscv32. Since it was many years ago I worked on this, I can't say how to do this today.

@Phi-Ho
Copy link
Author

Phi-Ho commented Nov 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants