Andrew Waterman
d2d2e0a55c
Remove SBI HTIF support; add console_getchar
10 years ago
Andrew Waterman
75471727f8
New definitions of misa/marchid/mvendorid
10 years ago
Andrew Waterman
4991166b0c
Use simpler, less-general IPI interface
No need for active messages in this context.
10 years ago
Andrew Waterman
bf9ee5ca11
simplify pk atomics and add atomic_or
10 years ago
Andrew Waterman
573c7d3f12
fix comment
10 years ago
Andrew Waterman
28d64a2227
Add SBI calls for remote I$/TLB flushes
10 years ago
Andrew Waterman
26a9320050
sptbr now holds a PPN, not an address
10 years ago
Andrew Waterman
3c0620321d
WIP on priv spec v1.9
10 years ago
Andrew Waterman
e984b263e0
Cap main memory size at 2 GiB for RV32
This works around HTIF limitations and can later be removed.
10 years ago
Andrew Waterman
a844b59be2
Remove sbi_printk macro
10 years ago
Andrew Waterman
ef524be394
S-mode shouldn't ever see misaligned load traps
10 years ago
Andrew Waterman
d00cb5a541
Rely on __riscv_muldiv and __riscv_hard_float macros
10 years ago
Andrew Waterman
b0d83d2a84
Fix MULW/DIVW/etc. emulation code
10 years ago
Andrew Waterman
57cbf902c9
Remove --disable-atomics flag; rely on -march setting instead
10 years ago
Andrew Waterman
ad7a60abea
WIP on priv spec v1.9
10 years ago
Andrew Waterman
1d78c4a12e
Simplify status register reloading in pk
10 years ago
Andrew Waterman
ba74319214
Avoid needless IRQ enable/disable
10 years ago
Andrew Waterman
d340b4271b
Add SBI calls for IRQ mask/unmask
10 years ago
Andrew Waterman
7016bac5df
Fix struct stat size mismatch for RV32
10 years ago
Andrew Waterman
31ad71b8a4
Remove incorrect code supporting ELF32 on RV64 and vice-versa
This is technically possible by running an RV32 supervisor on an
RV64 machine, but the M-mode and S-mode code would need to be
compiled and linked separately.
10 years ago
Colin Schmidt
676c953b79
add renameat syscall
10 years ago
Andrew Waterman
85ae17aa14
Write 1 to MIPI, not 0
10 years ago
Andrew Waterman
529a6a3a0c
Change boot procedure to not rely on IPIs
That procedure doesn't work correctly if hart 0 comes out of reset while
hart 1 is still in reset.
10 years ago
Andrew Waterman
d37b50edf5
Don't rely on arpa/inet.h; newlib doesn't provide it
10 years ago
Andrew Waterman
e66623316c
Merge pull request #15 from darius-bluespec/fix-disable-fp-emulation
Fix --disable-fp-emulation.
11 years ago
Andrew Waterman
e59b354ab4
Merge pull request #14 from darius-bluespec/fix-disable-atomics
Fix macros for emulating atomic operations (--disable-atomics).
11 years ago
Andrew Waterman
83c8b2027f
Merge pull request #13 from darius-bluespec/bbl-include-config
Add missing #include for config.h
11 years ago
Darius Rad
6300bfbbf8
Fix --disable-fp-emulation.
11 years ago
Darius Rad
b9961802ce
Fix macros for emulating atomic operations (--disable-atomics).
11 years ago
Darius Rad
4de5ecc39b
Add missing #include for config.h
11 years ago
Andrew Waterman
197a8b81e4
Use IPIs to wake up harts
This has the side effect of testing the IPI mechanism. Still not sure
this is the best approach to booting, but it works...
11 years ago
Andrew Waterman
47f9e06fc2
Read and use devicetree -- THIS BREAKS ROCKET FOR NOW
11 years ago
Andrew Waterman
9cc6732d80
print PC of failed assertions
11 years ago
Yunsup Lee
fa1b729581
fix pte_create to deal with protection bits correctly
11 years ago
Andrew Waterman
69b5de4ffa
Initialize FCSR on boot
11 years ago
Andrew Waterman
09565f7353
Initialize mtimecmp for debuggability
11 years ago
Andrew Waterman
6fb355c58c
Increase VMR limit for SPEC
11 years ago
Andrew Waterman
4a37572381
Add ftruncate syscall
11 years ago
Andrew Waterman
18efb61dc4
Zero-initialize x-registers for debuggability
11 years ago
Andrew Waterman
cc3a93bf30
Stub out a few system calls
11 years ago
Andrew Waterman
e81b125dc4
Fix single-precision FP emulation
11 years ago
Andrew Waterman
d2d16a63e2
Disable RVC in fixed-size assembly blocks
11 years ago
Andrew Waterman
04d07c02bb
Fix RVC build
11 years ago
Andrew Waterman
25acd5c8fd
Don't automatically run autoconf
Run it yourself if you modify configure.ac, and commit the configure script.
11 years ago
Andrew Waterman
89f4e2a9ef
Fix DECLARE_CAUSE macros
11 years ago
Andrew Waterman
a710501a3f
Store RV logo in rodata, rather than making it on the fly
This works around a stack overflow.
11 years ago
Andrew Waterman
6aa84fd30d
Undo last commit
It breaks programs that rely on ELF program headers.
11 years ago
Andrew Waterman
39f189549b
Avoid stack overflow with -msoft-float
11 years ago
Andrew Waterman
41e85e084a
Don't let brk stomp on mmap'd regions
We were already trying to handle this case, but we got it wrong.
11 years ago
Andrew Waterman
a6da37f217
New M-mode timer and SBI call to use it
11 years ago