Commit Graph

1736 Commits

Author SHA1 Message Date
Zihao Yu 90104ba9d2 tests,amtest,audio: use 8kHz example 2020-04-23 21:09:26 +08:00
Zihao Yu dacc04cacc native,devices,audio: add init register 2020-04-23 21:05:58 +08:00
Zihao Yu 43d6cf558d native,devices,audio: add missing files 2020-04-23 20:29:23 +08:00
Zihao Yu 55b6b17140 native,devices,audio: modify the buffer size to match the one in fceux
* this fixed the delay
2020-04-23 20:08:18 +08:00
Zihao Yu c808df5403 apps,fceux: sound works on native, but there is some delay 2020-04-23 20:07:13 +08:00
Zihao Yu bf9ef5524c native,devices,audio: modify ctl.wait to wait until there are enough space
* instead of waiting for a totally free buffer
2020-04-23 20:03:14 +08:00
Zihao Yu 7ac68fa3e2 native,devices,audio: add SBSTAT register
* this can expose the status of the stream buffer to applications
2020-04-23 20:00:48 +08:00
Zihao Yu 163a316f56 apps,fceux: add sound back 2020-04-23 09:23:45 +08:00
Zihao Yu 94601b1cb2 native,ioe: add audio and audio test 2020-04-23 09:22:24 +08:00
Zihao Yu 5548c7d541 Merge branch 'riscv64-sdi' into 'master'
am: add riscv64-sdi

See merge request projectn/nexus-am!41
2020-04-22 16:45:56 +08:00
Zihao Yu 7bd9feb1f1 am: add riscv64-sdi 2020-04-22 16:44:12 +08:00
Zihao Yu ee45a49e1a Merge branch 'riscv32-noop' into 'master'
add riscv32-noop

See merge request projectn/nexus-am!40
2020-04-21 11:55:52 +08:00
Zihao Yu d9607b87fa add riscv32-noop 2020-04-21 11:52:04 +08:00
Zihao Yu 6fd52a1242 Merge branch 'printf-int32' into 'master'
libs,klib,stdio: format 32-bit integer without 64-bit division

See merge request projectn/nexus-am!39
2020-04-15 23:16:40 +08:00
Zihao Yu ae27be8866 libs,klib,stdio: format 32-bit integer without 64-bit division 2020-04-15 23:15:01 +08:00
Zihao Yu 47fb03a3a8 Merge branch 'patch-1' into 'master'
Update string.c : fix bug in strcat when dst start with '\0'

See merge request projectn/nexus-am!38
2020-04-13 23:46:45 +08:00
Legend Zhang 4d3fb8a14f Update string.c : fix bug in strcat when dst start with '\0' 2020-04-13 23:44:37 +08:00
Zihao Yu 5fb66a380f Merge branch 'fix-riscv-cte' into 'master'
riscv64-nemu,cte: fix wrong store instruction in trap.S

See merge request projectn/nexus-am!37
2020-03-25 09:19:37 +08:00
Zihao Yu 90891b4b3e riscv64-nemu,cte: fix wrong store instruction in trap.S 2020-03-25 09:18:26 +08:00
Zihao Yu 00a57cee1b Merge branch 'sdi' into 'master'
am,sdi: use the rv64 engine in NEMU and add more isa

See merge request projectn/nexus-am!36
2020-03-25 09:16:17 +08:00
Zihao Yu efd6858b10 am,sdi: use the rv64 engine in NEMU and add more isa 2020-03-25 09:14:40 +08:00
Zihao Yu 86fd419d6d Merge branch 'x86-sdi' into 'master'
X86 sdi

See merge request projectn/nexus-am!35
2020-03-12 22:00:38 +08:00
Zihao Yu 73c903c618 x86-sdi: one-key run 2020-03-12 21:10:09 +08:00
Zihao Yu b144277262 x86-sdi: add dummy cte and vme to compile amtest 2020-03-12 21:09:33 +08:00
Zihao Yu b157c6b453 Merge branch 'x86-sdi' into 'master'
add x86-sdi

See merge request projectn/nexus-am!34
2020-03-10 17:14:03 +08:00
Zihao Yu 6960c1ccba add x86-sdi 2020-03-10 17:13:30 +08:00
Zihao Yu ee66350b06 Merge branch 'riscv64-pmp' into 'master'
riscv64-nemu,cte: set PMP before entering S-mode

See merge request projectn/nexus-am!33
2020-03-10 17:11:41 +08:00
Zihao Yu c297b3bce5 riscv64-nemu,cte: set PMP before entering S-mode 2020-03-10 17:10:12 +08:00
Zihao Yu c4bf428536 Merge branch 'riscv64-noop-mainargs' into 'master'
riscv64-noop,trm: support mainargs

See merge request projectn/nexus-am!32
2020-03-07 21:14:02 +08:00
Zihao Yu f766872d7d riscv64-noop,trm: support mainargs 2020-03-07 21:12:53 +08:00
Zihao Yu fc1833a390 Merge branch 'riscv64' into 'master'
Riscv64

See merge request projectn/nexus-am!31
2020-03-07 21:08:19 +08:00
Zihao Yu 77ecbf5269 remove stale riscv32-noop 2020-03-07 20:58:41 +08:00
Zihao Yu 064fac47bb *-nemu,vme: zero page allocated from OS 2020-03-07 20:53:38 +08:00
Zihao Yu 81065463f0 riscv64-noop: flush TLB after switching address space 2020-03-07 20:40:06 +08:00
Zihao Yu 88d77a74a6 riscv64-noop: flush icache when returning from interrupt
* since AM does not know whether OS loads some code or not
2020-03-07 20:37:03 +08:00
Zihao Yu 70056864f7 riscv64-noop: reuse cte and vme from riscv64-nemu 2020-03-07 20:28:52 +08:00
Zihao Yu 6eafb5797a riscv64: use gnu toolchain 2020-03-07 19:54:37 +08:00
Zihao Yu 817223fa81 riscv64-nemu: reuse more code from riscv32-nemu 2020-03-07 19:52:02 +08:00
Zihao Yu 45374f11d5 Merge branch 'pa' into 'master'
Pa

See merge request projectn/nexus-am!30
2020-03-07 19:07:48 +08:00
Zihao Yu 594722ffa9 riscv32-nemu: change cause/status/epc to scause/sstatus/sepc 2020-03-07 19:05:12 +08:00
Zihao Yu 3c9b2807b3 am,arch,riscv32: use gnu toolchain 2020-03-07 16:59:00 +08:00
Zihao Yu 29f58479c1 apps,typing: exit when pressing ESC 2020-03-06 18:17:44 +08:00
Zihao Yu 5493bcea14 share,game,nes: add roms from Navy-apps 2020-03-06 18:17:44 +08:00
Zihao Yu 189252244d apps,fceux: support building from Navy-apps 2020-03-06 18:17:44 +08:00
Zihao Yu 50dc7a21e1 Merge pull request #6 from NJU-ProjectN/fix-gitignore
gitignore: first add everything ignored by ics-pa
2020-03-06 18:17:06 +08:00
Zihao Yu 2d082180be Merge branch 'refactor-nemu' into 'master'
Refactor nemu

See merge request projectn/nexus-am!29
2020-03-06 18:09:16 +08:00
Zihao Yu 116db01939 *-nemu,vme: refactor ptw code 2020-03-06 15:55:23 +08:00
Zihao Yu 885ee22f9a *-nemu: refactor phyiscal address space for vme 2020-03-06 13:57:38 +08:00
Zihao Yu dcf9972777 riscv64-nemu: share similar code with riscv32-nemu 2020-03-05 20:34:43 +08:00
Zihao Yu 4371f037c1 *-nemu: refactor directories 2020-03-05 17:25:06 +08:00