Skip to content

Commit

Permalink
Merge pull request #14 from 32blit/patch-itcm-vm
Browse files Browse the repository at this point in the history
Move Lua VM to ITCM RAM
  • Loading branch information
Daft-Freak authored Jan 28, 2023
2 parents 9e62da3 + 13d1a89 commit 1625ce6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 1625ce6

Please sign in to comment.