Skip to content

Commit

Permalink
trace: [tcg] Include TCG-tracing header on all targets
Browse files Browse the repository at this point in the history
Signed-off-by: Lluís Vilanova <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
Lluís Vilanova authored and stefanhaRH committed Aug 12, 2014
1 parent 85d8bf2 commit a7e30d8
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 0 deletions.
3 changes: 3 additions & 0 deletions target-alpha/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"


#undef ALPHA_DEBUG_DISAS
#define CONFIG_SOFTFLOAT_INLINE

Expand Down
2 changes: 2 additions & 0 deletions target-arm/translate-a64.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"

static TCGv_i64 cpu_X[32];
static TCGv_i64 cpu_pc;
static TCGv_i32 cpu_NF, cpu_ZF, cpu_CF, cpu_VF;
Expand Down
3 changes: 3 additions & 0 deletions target-arm/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"


#define ENABLE_ARCH_4T arm_feature(env, ARM_FEATURE_V4T)
#define ENABLE_ARCH_5 arm_feature(env, ARM_FEATURE_V5)
/* currently all emulated v5 cores are also v5TE, so don't bother */
Expand Down
3 changes: 3 additions & 0 deletions target-cris/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

#include "exec/helper-gen.h"

#include "trace-tcg.h"


#define DISAS_CRIS 0
#if DISAS_CRIS
# define LOG_DIS(...) qemu_log_mask(CPU_LOG_TB_IN_ASM, ## __VA_ARGS__)
Expand Down
3 changes: 3 additions & 0 deletions target-i386/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"


#define PREFIX_REPZ 0x01
#define PREFIX_REPNZ 0x02
#define PREFIX_LOCK 0x04
Expand Down
3 changes: 3 additions & 0 deletions target-lm32/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@

#include "exec/helper-gen.h"

#include "trace-tcg.h"


#define DISAS_LM32 1
#if DISAS_LM32
# define LOG_DIS(...) qemu_log_mask(CPU_LOG_TB_IN_ASM, ## __VA_ARGS__)
Expand Down
3 changes: 3 additions & 0 deletions target-m68k/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"


//#define DEBUG_DISPATCH 1

/* Fake floating point. */
Expand Down
3 changes: 3 additions & 0 deletions target-microblaze/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
#include "exec/cpu_ldst.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"


#define SIM_COMPAT 0
#define DISAS_GNU 1
#define DISAS_MB 1
Expand Down
3 changes: 3 additions & 0 deletions target-mips/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#include "exec/helper-gen.h"
#include "sysemu/kvm.h"

#include "trace-tcg.h"


#define MIPS_DEBUG_DISAS 0
//#define MIPS_DEBUG_SIGN_EXTENSIONS

Expand Down
3 changes: 3 additions & 0 deletions target-openrisc/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"


#define OPENRISC_DISAS

#ifdef OPENRISC_DISAS
Expand Down
3 changes: 3 additions & 0 deletions target-ppc/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"


#define CPU_SINGLE_STEP 0x1
#define CPU_BRANCH_STEP 0x2
#define GDBSTUB_SINGLE_STEP 0x4
Expand Down
2 changes: 2 additions & 0 deletions target-s390x/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ static TCGv_ptr cpu_env;
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"


/* Information that (most) every instruction needs to manipulate. */
typedef struct DisasContext DisasContext;
Expand Down
3 changes: 3 additions & 0 deletions target-sh4/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"


typedef struct DisasContext {
struct TranslationBlock *tb;
target_ulong pc;
Expand Down
3 changes: 3 additions & 0 deletions target-sparc/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

#include "exec/helper-gen.h"

#include "trace-tcg.h"


#define DEBUG_DISAS

#define DYNAMIC_PC 1 /* dynamic pc value */
Expand Down
3 changes: 3 additions & 0 deletions target-unicore32/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"


/* internal defines */
typedef struct DisasContext {
target_ulong pc;
Expand Down
3 changes: 3 additions & 0 deletions target-xtensa/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"

#include "trace-tcg.h"


typedef struct DisasContext {
const XtensaConfig *config;
TranslationBlock *tb;
Expand Down

0 comments on commit a7e30d8

Please sign in to comment.