Commit graph

27 commits

Author SHA1 Message Date
Henrik Rydgard
32f479b0a6 Assorted log spam reductions.
Also let Java know of some important events. Not used for anything yet.
2013-12-04 17:43:00 +01:00
Unknown W. Brackets
50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Unknown W. Brackets
2c763365b4 Check size is within bounds in AllocAt(). 2013-09-11 22:52:22 -07:00
Unknown W. Brackets
dc3de4dbff For an off-grain alloc, properly align size. 2013-08-20 00:58:38 -07:00
Unknown W. Brackets
69abe041b7 Properly handle off-grain allocations.
This was causing sceKernelMaxFreeMemSize() to report a size that wasn't
allocatable, since sizes are upaligned to grain.
2013-08-20 00:46:13 -07:00
Unknown W. Brackets
98f99e1e3c Fix some initialization order warnings. 2013-05-31 23:14:28 -07:00
Unknown W. Brackets
90715c2ec2 Avoid a double lookup in FreeExact(). 2013-05-26 23:48:55 -07:00
Unknown W. Brackets
776c8e8533 Rewrite BlockAllocator in attempt to free faster.
And more importantly try to find that weird heap corruption, but no
luck...
2013-05-26 23:09:27 -07:00
Henrik Rydgard
43df3c9071 Lazy font loading (to speed up running unit tests...) 2013-03-06 22:26:54 +01:00
Unknown W. Brackets
f2bdea74be Don't align size to grain for PMB. 2013-03-03 20:26:57 -08:00
Unknown W. Brackets
20bb472b66 Simplify reverse_iterator usage in block alloc. 2013-03-03 16:17:05 -08:00
Unknown W. Brackets
255cbec57c Fix alignment in block allocator. 2013-03-03 16:17:05 -08:00
Henrik Rydgard
ba0362d817 PGF font support. Mostly an adaptation and cleanup of JPCSP's font system. 2013-02-27 17:41:39 +01:00
Unknown W. Brackets
a4032c5170 Simplify savestate code so it's all automagical.
If you can't beat 'em, join 'em?
2013-02-04 08:27:01 -08:00
Unknown W. Brackets
07a5dca98e Expand out some savestate code saving non-pod. 2013-02-04 08:26:59 -08:00
Unknown W. Brackets
2a6457b6ab Cut down on h files including PointerWrap.
This makes changes to it a bit faster to build.
2013-02-04 08:26:59 -08:00
Unknown W. Brackets
4c510b5649 Clean up sceKernelFreeVpl(), not waking yet. 2013-01-18 01:38:13 -08:00
Unknown W. Brackets
592a83b081 Make sure BlockAllocator doesn't get off grain.
This should fix spurious warnings about AllocAt() when loading a game.
2013-01-18 01:38:12 -08:00
Unknown W. Brackets
dcd3045cd5 Always use -1 for failed allocs in block allocator.
Before it used 0 and -1, confusing.
2013-01-18 01:38:12 -08:00
Henrik Rydgård
95c4e0b9c4 Quick build fix for gcc 2012-12-28 23:33:00 +01:00
Unknown W. Brackets
bcecd881b1 Savestate cleanup + be more careful with vectors.
For some reason I debugged it going into std::string so I just made
them all more explicit which fixed everything.
2012-12-28 13:55:31 -08:00
Unknown W. Brackets
d9efdf548b Add basic state for the memory kernel objects.
Not the actual memory partitions quite yet.
2012-12-28 13:52:52 -08:00
Henrik Rydgard
897bed8072 Fix crash bug in blockallocator when tag strings were too long 2012-11-07 19:10:34 +01:00
Henrik Rydgard
a6a6453c60 Add custom "grain" for block allocator. Set the big block allocs to grain 256. 2012-11-07 17:35:22 +01:00
Henrik Rydgard
c61d10363a Rewrite callback handling, part 1. All sorts of other fixes too. 2012-11-06 15:46:46 +01:00
Henrik Rydgard
0f04d108de Sanity checks and cleanup 2012-11-05 13:36:12 +01:00
Henrik Rydgard
4f7ad15758 Add snapshot of the whole source code. 2012-11-01 16:19:01 +01:00