#########################################################
# cpu emulator library
LIBOBJS=exec.o kqemu.o translate-all.o cpu-exec.o\
- translate.o op.o host-utils.o
+ translate.o host-utils.o
+ifndef CONFIG_NO_DYNGEN_OP
+LIBOBJS+=op.o
+endif
# TCG code generator
LIBOBJS+= tcg/tcg.o tcg/tcg-dyngen.o tcg/tcg-runtime.o
CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
# libqemu
+ifndef CONFIG_NO_DYNGEN_OP
OPC_H = gen-op.h dyngen-opc.h op.h
+endif
libqemu.a: $(LIBOBJS)
rm -f $@
#endif
#endif
+#ifndef CONFIG_NO_DYNGEN_OP
const TCGArg *dyngen_op(TCGContext *s, int opc, const TCGArg *opparam_ptr)
{
uint8_t *gen_code_ptr;
s->code_ptr = gen_code_ptr;
return opparam_ptr;
}
+#endif
*/
#include "tcg.h"
+#ifndef CONFIG_NO_DYNGEN_OP
/* legacy dyngen operations */
#include "gen-op.h"
+#endif
int gen_new_label(void);
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
+#ifndef CONFIG_NO_DYNGEN_OP
#include "dyngen-opc.h"
+#endif
#ifndef DEF2
#define DEF2(name, oargs, iargs, cargs, flags) DEF(name, oargs + iargs + cargs, 0)
goto next;
case INDEX_op_end:
goto the_end;
+
+#ifndef CONFIG_NO_DYNGEN_OP
case 0 ... INDEX_op_end - 1:
/* legacy dyngen ops */
#ifdef CONFIG_PROFILER
args = dyngen_op(s, opc, args);
}
goto next;
+#endif
default:
/* Note: in order to speed up the code, it would be much
faster to have specialized register allocator functions for