jor1k icon indicating copy to clipboard operation
jor1k copied to clipboard

Error: failed to create CPU

Open Bohan-hu opened this issue 2 years ago • 0 comments

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.

Bohan-hu avatar Nov 20 '21 14:11 Bohan-hu