Files
jak-project/game/runtime.h
T
Parker de25f39439 arm64: Apple Silicon support (#4390)
Got OpenGOAL building and running natively on Apple Silicon.

This is the rest of the port after the smaller arm64 emitter PRs. I was
told pushing one big PR was okay. This covers goalc, the runtime,
linker, kernel and the GOAL asm.

The new paths have native tests. I also found four more emitter bugs
while running it. They're in scalar sqrt, 128-bit stores, scalar max and
indexed stores above 4 GB.

Spent a while cleaning it up so it's easier to read. 4am gotta sleep lol

Closes #3841

---------

Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
2026-08-24 23:22:47 -04:00

27 lines
642 B
C++

#pragma once
/*!
* @file runtime.h
* Setup and launcher for the runtime.
*/
#include <thread>
#include "common/common_types.h"
#include "common/versions/versions.h"
#include "game/common/game_common_types.h"
#include "game/kernel/common/kboot.h"
#include "system/background_worker.h"
extern u8* g_ee_main_mem;
// executable view of g_ee_main_mem for GOAL calls
extern u8* g_ee_main_mem_exec;
extern GameVersion g_game_version;
extern BackgroundWorker g_background_worker;
extern int g_server_port;
RuntimeExitStatus exec_runtime(GameLaunchOptions game_options, int argc, const char** argv);
extern std::thread::id g_main_thread_id;