util: Implement Lua module for m5ops.
authorHanhwi Jang <jang.hanhwi@gmail.com>
Sat, 9 Dec 2017 17:02:34 +0000 (02:02 +0900)
committerHanhwi Jang <jang.hanhwi@gmail.com>
Thu, 25 Jan 2018 12:11:24 +0000 (12:11 +0000)
commit3ccef3dd7702530718f145c4c30061688ebe276f
tree2ca19a4ff18b9f27baff911bde45ee4ce633f305
parent83f2b253989fd6dfc8f48d5368ae351ade91cfc6
util: Implement Lua module for m5ops.

This module allows m5ops to be executed in Lua programs.
To compile it (in util/m5):
    The following command generates Lua moduel, gem5OpLua.so.

    make -f Makefile.<arch> gem5OpLua.so

To use it:
    First, put gem5OpLua.so in Lua library search path.
    Then, import the module and execute the m5op function.

Example usage, creating a checkpoint.

    m5 = require("gem5OpLua")
    m5.do_checkpoint(0, 0)

Change-Id: Icc18a1fb6c050afeb1cf4558fbdc724fb26a90e2
Reviewed-on: https://gem5-review.googlesource.com/6541
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
util/m5/Makefile.aarch64
util/m5/Makefile.alpha
util/m5/Makefile.arm
util/m5/Makefile.sparc
util/m5/Makefile.thumb
util/m5/Makefile.x86
util/m5/lua_gem5Op.c [new file with mode: 0644]
util/m5/m5.c
util/m5/m5_mmap.c [new file with mode: 0644]
util/m5/m5_mmap.h [new file with mode: 0644]
util/m5/m5op_x86.S