aboutsummaryrefslogtreecommitdiff
path: root/machine
AgeCommit message (Collapse)AuthorFilesLines
2016-11-04Acquire lock before attempting tohost/fromhost sequencesAndrew Waterman1-12/+23
2016-11-04Add spinlock_trylock routine; use it to implement spinlock_lockAndrew Waterman1-2/+8
2016-10-25Use __riscv_flen macro to detect FP supportAndrew Waterman6-10/+14
2016-09-15machine, mentry.S: fix not receiving IPI for other harts (#38)sashimi-yzh1-0/+4
* 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.
2016-09-09Attempt to disable FPU if using no-FPU pk/bblAndrew Waterman1-2/+3
2016-09-09machine, emulation.c: fix the condition of rdtime emulation (#37)sashimi-yzh1-2/+2
The time counter is enabled with the bit field set in `counteren` CSR.
2016-08-26Update to new counter specAndrew Waterman3-104/+351
2016-08-16add htif section in linker script, with ALIGNs to prevent MMIO and data from ↵Sagar Karandikar1-2/+2
being placed on same page (#32)
2016-07-28Don't let other harts boot before HLS is initializedAndrew Waterman3-8/+12
Use IPIs to signal them.
2016-07-19Handle misaligned loads in ascending order of byte addressAndrew Waterman1-1/+1
2016-07-16Improve trap redirection codeAndrew Waterman1-7/+6
2016-07-16Add FCLASS emulationAndrew Waterman2-7/+21
2016-07-06Udpate to new PTE formatAndrew Waterman3-10/+4
2016-07-05Initialize timecmp; add PRCI testAndrew Waterman2-34/+55
2016-06-05PLIC registers are 32-bit, not 16-bitAndrew Waterman3-6/+6
2016-06-01Clear IPIs using MMIO, not mip CSRAndrew Waterman4-1/+41
2016-05-24Remove debug printfsAndrew Waterman1-11/+0
2016-05-22Add preliminary support for the interrupt controllerAndrew Waterman4-4/+90
2016-05-05Poll HTIF console on timer interruptAndrew Waterman2-8/+20
2016-05-05Add missing casts for RV32Andrew Waterman1-3/+3
2016-05-03Find IPI address in configuration stringAndrew Waterman4-9/+4
2016-05-02Don't use tohost/fromhost registers; communicate with host via memoryAndrew Waterman2-24/+21
2016-04-30Fix loading of config string pointerAndrew Waterman1-1/+2
2016-04-30Move DRAM to high addressesAndrew Waterman8-13/+28
2016-04-30Split out config string parserAndrew Waterman2-159/+167
2016-04-29ERET -> MRETAndrew Waterman3-10/+19
2016-04-29Remove mtime/mtimecmpAndrew Waterman6-32/+30
2016-04-29Use mbadaddr to speed up misaligned ld/st emulationAndrew Waterman1-2/+2
2016-04-06Don't assume existence of uarch countersAndrew Waterman1-34/+0
2016-03-22fix multilib build error. it's type casting related.SeungRyeol Lee1-1/+1
2016-03-10Misc improvementsAndrew Waterman2-6/+8
2016-03-10Make num_harts a uintptr_tAndrew Waterman2-4/+4
Making it a uint32_t is a false economy.
2016-03-10Update encodingAndrew Waterman1-6/+12
2016-03-10Remove dead codeAndrew Waterman2-3/+0
2016-03-10Set time comparator correctly on RV32Andrew Waterman1-4/+9
The old code truncated the upper 32 bits, and even if it got that right, it would have generated spurious interrupts.
2016-03-09Factor emulation routines into multiple filesAndrew Waterman7-207/+233
2016-03-09Refactor pk, bbl, machine into separate librariesAndrew Waterman23-0/+3496
Yuck.