Zihao Yu
095819199e
use macros in klib-macros.h
2020-02-07 14:40:20 +08:00
Zihao Yu
63db97d758
libs,klib: collect useful arch-independent macros
2020-02-07 00:03:52 +08:00
Zihao Yu
e670d1f2ca
Revert "native,platform: use malloc/free for temporary memory"
...
This reverts commit 9249c3fb60
.
* defining __NATIVE_USE_KLIB__ will link malloc() to the klib version,
which may cause errors
2020-02-06 23:16:10 +08:00
Zihao Yu
b5db2daab5
libs,klib,stdlib: enhance atoi()
...
* skip leading space and finish with non-digit character
2020-02-06 23:03:13 +08:00
Zihao Yu
ae87feded1
libs,klib,string: remove unimplemented functions
...
* native may link to them and cause errors
2020-02-06 23:02:34 +08:00
Zihao Yu
e31460931e
libs,klib,stdio: add vsnprintf
2020-02-06 22:59:13 +08:00
Zihao Yu
95de6edc26
tests,klibtest: rewrite printf tests
2020-02-06 22:56:22 +08:00
Zihao Yu
2602da12ff
libs,klib,stdio: rewrite printf
2020-02-06 22:51:01 +08:00
Yanyan Jiang
b62442d060
Merge pull request #81 from jiangyy/fceux-opt
...
Fceux opt
2020-02-05 22:23:30 +08:00
Zihao Yu
51c5a6125d
convert text files to unix format and remove trailing whitespace
2020-02-05 22:19:56 +08:00
Zihao Yu
7cf264590b
Merge branch 'master' into fceux-opt
2020-02-05 22:13:12 +08:00
Yanyan Jiang
c1039fba24
Merge pull request #79 from jiangyy/fix-qemu
...
x86-qemu,cte: fix wrong saved_ctx.esp for DPL_USER
2020-02-05 21:48:06 +08:00
Yanyan Jiang
9d15e249f2
Merge pull request #80 from jiangyy/native-nanos
...
Native nanos
2020-02-05 21:47:16 +08:00
Yanyan Jiang
20271fe22e
Merge pull request #82 from jiangyy/litenes
...
Litenes
2020-02-05 21:44:51 +08:00
Zihao Yu
42735baa2f
apps: remove nesemu2
2020-02-05 16:08:35 +08:00
Zihao Yu
06e298e557
apps,litenes,ppu: fix color bug
...
* see github.com/NJU-ProjectN/LiteNES/issues/2 for more details
2020-02-05 16:05:01 +08:00
Zihao Yu
bd6fe53d0a
apps: add the unoptimized litenes
2020-02-05 16:03:51 +08:00
Zihao Yu
f935114b4f
apps,litenes: rename to litenes_opt verison
2020-02-05 15:58:56 +08:00
Zihao Yu
9cb57286f5
share,games,nes: add Makefile for cleaning
2020-02-05 15:54:48 +08:00
Zihao Yu
288e829c87
apps,litenes: move roms to $(AM_HOME)/share/games/nes
2020-02-05 15:52:31 +08:00
Zihao Yu
bbf0545fd5
apps,litenes,psg: change key
2020-02-05 15:36:49 +08:00
Zihao Yu
12c077ced6
apps,litenes: only run mario
2020-02-05 15:33:00 +08:00
Zihao Yu
81ecd81e83
apps,fceux: add README
2020-02-05 14:55:14 +08:00
Zihao Yu
216135ba76
apps,fceux: fix message
2020-02-05 14:45:58 +08:00
Zihao Yu
60b770dc2b
apps,fceux,ppu: fix linking error on native
...
* it reports "undefined reference to `operator new[](unsigned int)"
2020-02-05 14:30:10 +08:00
Zihao Yu
84596e70e4
apps,fceux,fceu: use static array for RAM
2020-02-05 14:18:59 +08:00
Zihao Yu
5e09bd497c
apps,fceux,ppu: use PALcache
2020-02-05 04:30:58 +08:00
Zihao Yu
0a48497457
apps,fceux,ppu: reduce computation between iterations
2020-02-05 04:28:32 +08:00
Zihao Yu
5b4bc98f65
apps,fceux,ppu: small refactor
2020-02-05 02:18:32 +08:00
Zihao Yu
937c3f8cc0
apps,fceux,ppu: do not calculate deemph buffer
...
* since it seems unused
2020-02-05 01:50:39 +08:00
Zihao Yu
f78dbf8f2a
apps,fceux,ppu: small refactor
2020-02-05 01:42:02 +08:00
Zihao Yu
51a4647d4e
apps,fceux,x6502: skip spin
2020-02-05 01:34:15 +08:00
Zihao Yu
a27b40c09d
apps,fceux,drivers,vidblit: loop unroll
2020-02-05 01:22:54 +08:00
Zihao Yu
a569922d53
apps,fceux,drivers,vidblit: do not support deemph palette to optimize performance
2020-02-05 00:53:46 +08:00
Zihao Yu
2a0777aa6d
native,cte: do not allow NULL context returned from user_handler
2020-02-04 23:58:26 +08:00
Zihao Yu
0d6860eb3f
native,mpe: no need to reinstall signal handler
...
* signal handlers are inherited across fork()
2020-02-04 23:52:37 +08:00
Zihao Yu
80fd3b5dfa
native,vme: use NULL as empty address space
2020-02-04 23:38:36 +08:00
Zihao Yu
9bca6477cb
native,mpe: move the initialization of ncpu to platform
2020-02-04 23:28:16 +08:00
Zihao Yu
e4d95b8566
native,vme: fix bug of malloc() across cpus
...
* malloc() will get memory from heap, which is private across cpus. This
will cause wrong memory accessing when a piece of memory is allocated
by one cpu but accessed by another.
* using pgalloc() from OS solves this issue
2020-02-04 22:50:33 +08:00
Zihao Yu
f90842395e
native,vme: record va/pa instead of vpn/ppn
2020-02-04 22:47:09 +08:00
Zihao Yu
c05bc48afa
native,vme: support prot
2020-02-04 20:25:26 +08:00
Zihao Yu
ecc7cc534e
native,cte: support _EVENT_PAGEFAULT
2020-02-04 20:24:21 +08:00
Zihao Yu
40c8c7ea43
native,cte: copy the context back to kstack before returing from __am_irq_handle
...
* this prevents overwriting kstack with _ucontext() in execve()
2020-02-04 19:51:35 +08:00
Zihao Yu
27df3ade85
native,{cte|vme}: fix initialization of interrupt flag
2020-02-04 19:09:28 +08:00
Zihao Yu
2f82f2e556
native,cte: move event from _Context to per-cpu structure
2020-02-04 15:33:33 +08:00
Zihao Yu
0a59295749
native,platform: replace private memory with per-cpu structure
2020-02-04 15:09:04 +08:00
Zihao Yu
1fd2d09991
native: AM API changed
2020-02-04 14:38:49 +08:00
Zihao Yu
5cd892a935
Merge branch 'master' into native-nanos
2020-02-04 00:41:00 +08:00
Zihao Yu
4acf3dbc23
Merge pull request #78 from jiangyy/x86-qemu
...
AM API changes and x86-qemu/x86-nemu ports
2020-02-03 21:26:17 +08:00
Yanyan Jiang
a8d493f179
amdev.h: fix register id bug
2020-02-03 12:59:08 +00:00