Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Lua VM to ITCM RAM #14

Merged
merged 1 commit into from
Jan 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ add_library(lua STATIC
wrap/stdio.cpp
)

target_include_directories(lua PRIVATE ${32BLIT_DIR}/32blit)

if(32BLIT_HW)
target_include_directories(lua SYSTEM PUBLIC wrap)
target_include_directories(lua PRIVATE ${32BLIT_DIR}/32blit)
endif()
4 changes: 2 additions & 2 deletions lua/lvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "ltm.h"
#include "lvm.h"

#include "engine/fast_code.hpp"

/*
** By default, use jump tables in the main interpreter loop on gcc
Expand Down Expand Up @@ -1118,8 +1119,7 @@ void luaV_finishOp (lua_State *L) {
#define vmcase(l) case l:
#define vmbreak break


void luaV_execute (lua_State *L, CallInfo *ci) {
void blit_fast_code(luaV_execute) (lua_State *L, CallInfo *ci) {
LClosure *cl;
TValue *k;
StkId base;
Expand Down