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

Error: failed to create CPU #166

Open
Bohan-hu opened this issue Nov 20, 2021 · 0 comments
Open

Error: failed to create CPU #166

Bohan-hu opened this issue Nov 20, 2021 · 0 comments

Comments

@Bohan-hu
Copy link

When trying to start the RISC-V simple demo, I got stuck in this page.
image

Here is the console output:

Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.
riscv.html:6 
        
       Mixed Content: The page at 'https://s-macke.github.io/jor1k/demos/riscv.html' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Raleway:400,300,700'. This request has been blocked; the content must be served over HTTPS.
jor1k-master-min.js:1740 kernel URL: kernel/bbl.bz2
jor1k-master-min.js:547 
        
       The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
LoopSoundBuffer @ jor1k-master-min.js:547
jor1kGUI @ jor1k-master-min.js:1802
@ riscv.html:71
jor1k-master-min.js:1646 Init with following JSON structure: 
jor1k-master-min.js:1646 {kernelURL: '../riscv-sys/kernel/bbl.bz2', dtbURL: '../riscv-sys/kernel/riscv.dtb', arch: 'riscv', cpu: 'wasm', memorysize: 64, …}
jor1k-master-min.js:1646 Allocate 64 MB
jor1k-master-min.js:1646 Use webassembly memory
jor1k-master-min.js:1646 Init RISCV SoC
jor1k-master-min.js:1646 Error: failed to create CPU:CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f @+0
jor1k-master-min.js:1646 Worker: Abort execution.
jor1k-master-min.js:1646 Error: failed to create SoC: TypeError: Cannot read properties of undefined (reading 'pc')
jor1k-worker-min.js:16425 
        
       Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'pc')
    at CPU.toString (jor1k-worker-min.js:16425)
    at System.PrintState (jor1k-worker-min.js:18592)
    at Object.Abort (jor1k-worker-min.js:6732)
    at System.Init (jor1k-worker-min.js:18547)
CPU.toString @ jor1k-worker-min.js:16425
System.PrintState @ jor1k-worker-min.js:18592
Abort @ jor1k-worker-min.js:6732
System.Init @ jor1k-worker-min.js:18547
async function
System.Init @ jor1k-worker-min.js:18541
onmessage @ jor1k-worker-min.js:6761
jor1k-master-min.js:1646 Worker: Abort execution.
jor1k-master-min.js:1646 Websocket closed. Reopening.
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

1 participant