tcg-runtime.c (acc95bc85036c443da8bf7159a77edf9f00dcd80) tcg-runtime.c (29a0af618ddd21f55df5753c3e16b0625f534b3c)
1/*
2 * Tiny Code Generator for QEMU
3 *
4 * Copyright (c) 2008 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 132 unchanged lines hidden (view full) ---

141
142uint64_t HELPER(ctpop_i64)(uint64_t arg)
143{
144 return ctpop64(arg);
145}
146
147void *HELPER(lookup_tb_ptr)(CPUArchState *env)
148{
1/*
2 * Tiny Code Generator for QEMU
3 *
4 * Copyright (c) 2008 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 132 unchanged lines hidden (view full) ---

141
142uint64_t HELPER(ctpop_i64)(uint64_t arg)
143{
144 return ctpop64(arg);
145}
146
147void *HELPER(lookup_tb_ptr)(CPUArchState *env)
148{
149 CPUState *cpu = ENV_GET_CPU(env);
149 CPUState *cpu = env_cpu(env);
150 TranslationBlock *tb;
151 target_ulong cs_base, pc;
152 uint32_t flags;
153
154 tb = tb_lookup__cpu_state(cpu, &pc, &cs_base, &flags, curr_cflags());
155 if (tb == NULL) {
156 return tcg_ctx->code_gen_epilogue;
157 }
158 qemu_log_mask_and_addr(CPU_LOG_EXEC, pc,
159 "Chain %d: %p ["
160 TARGET_FMT_lx "/" TARGET_FMT_lx "/%#x] %s\n",
161 cpu->cpu_index, tb->tc.ptr, cs_base, pc, flags,
162 lookup_symbol(pc));
163 return tb->tc.ptr;
164}
165
166void HELPER(exit_atomic)(CPUArchState *env)
167{
150 TranslationBlock *tb;
151 target_ulong cs_base, pc;
152 uint32_t flags;
153
154 tb = tb_lookup__cpu_state(cpu, &pc, &cs_base, &flags, curr_cflags());
155 if (tb == NULL) {
156 return tcg_ctx->code_gen_epilogue;
157 }
158 qemu_log_mask_and_addr(CPU_LOG_EXEC, pc,
159 "Chain %d: %p ["
160 TARGET_FMT_lx "/" TARGET_FMT_lx "/%#x] %s\n",
161 cpu->cpu_index, tb->tc.ptr, cs_base, pc, flags,
162 lookup_symbol(pc));
163 return tb->tc.ptr;
164}
165
166void HELPER(exit_atomic)(CPUArchState *env)
167{
168 cpu_loop_exit_atomic(ENV_GET_CPU(env), GETPC());
168 cpu_loop_exit_atomic(env_cpu(env), GETPC());
169}
169}