clang didn't like static members in anonymous structures, gave them names WriteEvent template wouldn't resolve for temporary values without const decl in clang added a few missing headers added -fno-operator-names for xbyak compilation under gcc/clang
57 lines
1.7 KiB
C++
57 lines
1.7 KiB
C++
/**
|
|
******************************************************************************
|
|
* Xenia : Xbox 360 Emulator Research Project *
|
|
******************************************************************************
|
|
* Copyright 2013 Ben Vanik. All rights reserved. *
|
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef ALLOY_BACKEND_X64_TRACING_H_
|
|
#define ALLOY_BACKEND_X64_TRACING_H_
|
|
|
|
#include <alloy/backend/tracing.h>
|
|
|
|
|
|
namespace alloy {
|
|
namespace backend {
|
|
namespace x64 {
|
|
|
|
const uint32_t ALLOY_BACKEND_X64 =
|
|
alloy::backend::EventType::ALLOY_BACKEND_X64;
|
|
|
|
|
|
class EventType {
|
|
public:
|
|
enum {
|
|
ALLOY_BACKEND_X64_INIT = ALLOY_BACKEND_X64 | (1),
|
|
ALLOY_BACKEND_X64_DEINIT = ALLOY_BACKEND_X64 | (2),
|
|
|
|
ALLOY_BACKEND_X64_ASSEMBLER = ALLOY_BACKEND_X64 | (1 << 20),
|
|
ALLOY_BACKEND_X64_ASSEMBLER_INIT = ALLOY_BACKEND_X64_ASSEMBLER | (1),
|
|
ALLOY_BACKEND_X64_ASSEMBLER_DEINIT = ALLOY_BACKEND_X64_ASSEMBLER | (2),
|
|
};
|
|
|
|
typedef struct Init_s {
|
|
static const uint32_t event_type = ALLOY_BACKEND_X64_INIT;
|
|
} Init;
|
|
typedef struct Deinit_s {
|
|
static const uint32_t event_type = ALLOY_BACKEND_X64_DEINIT;
|
|
} Deinit;
|
|
|
|
typedef struct AssemblerInit_s {
|
|
static const uint32_t event_type = ALLOY_BACKEND_X64_ASSEMBLER_INIT;
|
|
} AssemblerInit;
|
|
typedef struct AssemblerDeinit_s {
|
|
static const uint32_t event_type = ALLOY_BACKEND_X64_ASSEMBLER_DEINIT;
|
|
} AssemblerDeinit;
|
|
};
|
|
|
|
|
|
} // namespace x64
|
|
} // namespace backend
|
|
} // namespace alloy
|
|
|
|
|
|
#endif // ALLOY_BACKEND_X64_TRACING_H_
|