Andrew Waterman
55ce524e74
Cap pk memory size to 2 GiB for RV32
10 years ago
Andrew Waterman
ff807a20bd
Fix ld.so load address at 4 KiB
10 years ago
Andrew Waterman
558039d546
Add syscall stubs to get through libpthread initializers
10 years ago
Andrew Waterman
7a71068853
Acquire lock before attempting tohost/fromhost sequences
10 years ago
Andrew Waterman
d5e3e0d86a
Add spinlock_trylock routine; use it to implement spinlock_lock
10 years ago
Andrew Waterman
c6b55ce3a8
Acquire write permissions before zeroing page in ELF loader
f81b722bf0 is a regression. If a
read-only segment does not begin on a page boundary, it would cause
the ELF loader to blow up.
10 years ago
Andrew Waterman
6c1d0604dc
Use __riscv_flen macro to detect FP support
10 years ago
Howard Mao
f81b722bf0
make sure pages for ELF sections have correct protection ( #40 )
10 years ago
sashimi-yzh
f892b43a2b
machine, mentry.S: fix not receiving IPI for other harts ( #38 )
* Before waiting for IPI by executing wfi instruction, MSIE bit
should be set in mie CSR for other harts, else they will get
stuck at the wfi instruction.
10 years ago
Andrew Waterman
8006d004a5
Attempt to disable FPU if using no-FPU pk/bbl
10 years ago
Andrew Waterman
4a6b20595a
Add -p flag to pk to disable demand paging
10 years ago
sashimi-yzh
292fb6e737
machine, emulation.c: fix the condition of rdtime emulation ( #37 )
The time counter is enabled with the bit field set in `counteren` CSR.
10 years ago
Andrew Waterman
08a6142a04
Update to new counter spec
10 years ago
Sagar Karandikar
f73dee6f2c
add htif section in linker script, with ALIGNs to prevent MMIO and data from being placed on same page ( #32 )
10 years ago
Andrew Waterman
0a7862c79f
when -s is passed, print time, instret, cycle, and CPI
10 years ago
Andrew Waterman
7520a47419
Disallow execution of RVC binaries on non-RVC pk
10 years ago
Andrew Waterman
55982bd019
Align pk trap_entry for RVC
10 years ago
Andrew Waterman
d42f458b6a
Don't let other harts boot before HLS is initialized
Use IPIs to signal them.
10 years ago
Prashanth Mundkur
cd6dec56d6
Update the readme with 32-bit info. ( #29 )
10 years ago
Andrew Waterman
7272e3f9bc
Handle misaligned loads in ascending order of byte address
10 years ago
Prashanth Mundkur
dc939be3b3
Support 32bit build ( #27 )
* Support configuration for a 32-bit build.
* Regenerate configure.
10 years ago
Andrew Waterman
748eee73a1
Improve trap redirection code
10 years ago
Andrew Waterman
023ae43e8d
Add FCLASS emulation
10 years ago
Andrew Waterman
6bead31951
zero-extend RV32 physical addresses for HTIF
10 years ago
Andrew Waterman
d88671efdf
Remove uarch counters
We'll re-add support for the generic performance counter facility once
it exists.
10 years ago
Andrew Waterman
dadad2d984
Remove vestigial configure search for riscv-isa-run/spike
10 years ago
Andrew Waterman
f6eff20106
Udpate to new PTE format
10 years ago
Andrew Waterman
8b41191ccd
Initialize timecmp; add PRCI test
10 years ago
Andrew Waterman
1e62fdfce7
PLIC registers are 32-bit, not 16-bit
10 years ago
Andrew Waterman
771c1163d3
Clear IPIs using MMIO, not mip CSR
10 years ago
Andrew Waterman
f70ee5576a
speed up memcpy for aligned bases but misaligned length
10 years ago
Andrew Waterman
e3afbd7c24
Remove debug printfs
10 years ago
Andrew Waterman
113d00e652
Add preliminary support for the interrupt controller
10 years ago
Andrew Waterman
1bcab7872c
Poll HTIF console on timer interrupt
10 years ago
Andrew Waterman
552bc9bf1b
Add missing casts for RV32
10 years ago
Andrew Waterman
ee610c0ff8
Find IPI address in configuration string
10 years ago
Andrew Waterman
2001632142
Don't use tohost/fromhost registers; communicate with host via memory
10 years ago
Andrew Waterman
06dfae8a04
Fix loading of config string pointer
10 years ago
Andrew Waterman
7389e46cd0
Move DRAM to high addresses
10 years ago
Andrew Waterman
1a9aefdd00
Split out config string parser
10 years ago
Andrew Waterman
b535cd6dc8
ERET -> MRET
10 years ago
Andrew Waterman
66776bbc3e
Remove mtime/mtimecmp
10 years ago
Andrew Waterman
de16a763e6
Use mbadaddr to speed up misaligned ld/st emulation
10 years ago
Garret Kelly
1baf122e28
pk: proxy chdir syscall to fesvr
10 years ago
Andrew Waterman
d114ddb3ec
Remove Chris Batten COPYING file
It's vestigial; he didn't work on this project.
10 years ago
Andrew Waterman
ee00503ebe
Don't assume existence of uarch counters
10 years ago
Andrew Waterman
0eface07b9
Use panic, not die, to terminate elf loader
10 years ago
SeungRyeol Lee
10e9fa3609
fix multilib build error. it's type casting related.
10 years ago
Andrew Waterman
d527883483
Misc improvements
10 years ago
Andrew Waterman
469c5f16a7
Make num_harts a uintptr_t
Making it a uint32_t is a false economy.
10 years ago