mirror of
https://github.com/open-goal/jak-project
synced 2026-08-22 07:04:29 -04:00
[Compiler] Improve spills and register backups (#175)
* xmm spill * improve getting stack variables * improve symbol getting * update changelog
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <thread>
|
||||
|
||||
#include "common/common_types.h"
|
||||
#include "common/util/Timer.h"
|
||||
#include "game/sce/libscf.h"
|
||||
#include "kboot.h"
|
||||
#include "kmachine.h"
|
||||
@@ -146,6 +147,7 @@ void KernelCheckAndDispatch() {
|
||||
// dispatch the kernel
|
||||
//(**kernel_dispatcher)();
|
||||
|
||||
Timer kernel_dispatch_timer;
|
||||
if (MasterUseKernel) {
|
||||
// use the GOAL kernel.
|
||||
call_goal_on_stack(Ptr<Function>(kernel_dispatcher->value), goal_stack, s7.offset,
|
||||
@@ -164,6 +166,11 @@ void KernelCheckAndDispatch() {
|
||||
}
|
||||
}
|
||||
|
||||
auto time_ms = kernel_dispatch_timer.getMs();
|
||||
if (time_ms > 3) {
|
||||
printf("Kernel dispatch time: %.3f ms\n", time_ms);
|
||||
}
|
||||
|
||||
ClearPending();
|
||||
|
||||
// if the listener function changed, it means the kernel ran it, so we should notify compiler.
|
||||
|
||||
Reference in New Issue
Block a user