Hi everyone ~
I participate in porting v8 into risc-v(https://github.com/v8-riscv/v8/).
I encount a error about jitless. If i run a helloworld.js with
'--jitless', it occurs SEGV_ACCERR.
error log:
`````
````````````````````````````````````````````````````````````````````````````
$ ./d8 ./test.js --jitless
Warning: unknown flag --enable-slow-asserts.
Try --help for options Received signal 11 SEGV_ACCERR 003fbfe45780
==== C stack trace ===============================
[0x002ac3444ea2]
[0x002ac34455ca]
0x003fc1bb0800]
[0x003fbfe45780]
[end of stack trace]
Segmentation fault (core dumped)
`````
````````````````````````````````````````````````````````````````````````````
address 003fbfe45780 is a Trampoline of builtin function JSEntryTrampoline
`````
````````````````````````````````````````````````````````````````````````````
kind = BUILTIN
name = JSEntryTrampoline
compiler = unknown
address = 0xd3886c5721
Trampoline (size = 36)
0xd3886c5780 0 00000e37 lui t3, 0x0
0xd3886c5784 4 564e0e1b addiw t3, t3, 1380
0xd3886c5788 8 00ce1e13 slli t3, t3, 12
0xd3886c578c c b10e0e13 addi t3, t3, -1264
0xd3886c5790 10 00ce1e13 slli t3, t3, 12
0xd3886c5794 14 503e0e13 addi t3, t3, 1283
0xd3886c5798 18 00ce1e13 slli t3, t3, 12
0xd3886c579c 1c 500e0e13 addi t3, t3, 1280
0xd3886c57a0 20 000e0067 jr t3
`````
````````````````````````````````````````````````````````````````````````````
I found these code leading to it:
```
void SetDefaultCodePermissions() {
if (FLAG_jitless) {
SetReadable();
} else {
SetReadAndExecutable();
}
}
```
But i don't know how to fix it.
Thank you.
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/v8-dev/5F44DBE3.0458EC.27333%40cstnet.cn.