riscv-software-src / riscv-angel Goto Github PK
View Code? Open in Web Editor NEWJavaScript RISC-V ISA Simulator. Boots linux in a web-browser.
Home Page: https://riscv.org/software-tools/riscv-angel/
License: Other
JavaScript RISC-V ISA Simulator. Boots linux in a web-browser.
Home Page: https://riscv.org/software-tools/riscv-angel/
License: Other
Riscv-angel works on Firefox when launched straight from the Internet. But, after git-cloning riscv-angel and then using python -m SimpleHTTPServer and entering http://127.0.0.1:8000/run.html in Firefox, I got the familiar emulator webpage, complete with a dialog with "Close and launch" button. I clicked on it, and nothing happens. Why is it apparently broken versus straight-from-Internet launching? I see there is vmlinux in lib/riscv_compiled. I find the HTML and Javascript codes difficult to decipher. Thanks for any help.
Generate filenames with timestamps instead of a.out
Should also fix #1
Also remove compiled binaries after some amount of time (~1hour?)
Is there an easy way to embed this into another webpage and specify what image to use?
Ideally I'd like to be able to use something like <iframe src="https://www.example.com/angel/run.html?image=http%3A%2F%2Fwww.example.com%2Fmy_image.bin
in order to embed the emulator into another webpage, but there doesn't appear to be an easy way to do that, or really much of a way at all.
Looks like awk can't do arithmetic:
#/ awk 'BEGIN{print 0,1,2,3}'
270040240 1 1 1
(Maybe it should fault, if floating point is missing??)
First off, this is awesome!
However, when it boots in Firefox, normal key strokes appears to be ignored, though return (AKA enter, newline...) works.
It works with Chrome.
Currently requires ISA as it was in mid-august.
Every link to the demo leads to a 404 page on riscv.org
.
(see Albert's email)
...then you scroll up and see the prompt.
improvement over hacky fix from a7d731f
Can cause ANGEL to get "stuck" fetching the old binary.
A number of sources say https://riscv.org/angel shoudl work, but it 404s.
The readme at https://github.com/riscv/riscv-angel says https://riscv.org/software-tools/riscv-angel/ and that page exists, but the link for "LAUNCH ANGEL" (http://52.32.189.224/angel-simulator/) doesn't work. The IP "52.32.189.224" belongs to AWS, but seems not to be reachable.
If I check out the project and try to launch locally then downloading the Linux image fails.
Insta-boot: just restore from a saved pre-booted processor state
image w/gcc
image w/dynamically linked busybox
image w/statically linked busybox
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.