diff --git a/libpixelflinger/Android.mk b/libpixelflinger/Android.mk index 9a937f8f4..55891db99 100644 --- a/libpixelflinger/Android.mk +++ b/libpixelflinger/Android.mk @@ -74,10 +74,6 @@ LOCAL_C_INCLUDES += $(LOCAL_EXPORT_C_INCLUDE_DIRS) \ external/safe-iop/include LOCAL_SHARED_LIBRARIES := libcutils liblog libutils -# Really this should go away entirely or at least not depend on -# libhardware, but this at least gets us built. -LOCAL_SHARED_LIBRARIES += libhardware_legacy -LOCAL_CFLAGS += -DWITH_LIB_HARDWARE include $(BUILD_SHARED_LIBRARY) include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/libpixelflinger/codeflinger/ARMAssembler.cpp b/libpixelflinger/codeflinger/ARMAssembler.cpp index 92243da9d..849512ac7 100644 --- a/libpixelflinger/codeflinger/ARMAssembler.cpp +++ b/libpixelflinger/codeflinger/ARMAssembler.cpp @@ -22,10 +22,6 @@ #include #include -#if defined(WITH_LIB_HARDWARE) -#include -#endif - #include #include "ARMAssembler.h" @@ -48,9 +44,6 @@ ARMAssembler::ARMAssembler(const sp& assembly) { mBase = mPC = (uint32_t *)assembly->base(); mDuration = ggl_system_time(); -#if defined(WITH_LIB_HARDWARE) - mQemuTracing = true; -#endif } ARMAssembler::~ARMAssembler() @@ -184,13 +177,6 @@ int ARMAssembler::generate(const char* name) const char * const format = "generated %s (%d ins) at [%p:%p] in %lld ns\n"; ALOGI(format, name, int(pc()-base()), base(), pc(), duration); -#if defined(WITH_LIB_HARDWARE) - if (__builtin_expect(mQemuTracing, 0)) { - int err = qemu_add_mapping(uintptr_t(base()), name); - mQemuTracing = (err >= 0); - } -#endif - char value[PROPERTY_VALUE_MAX]; property_get("debug.pf.disasm", value, "0"); if (atoi(value) != 0) { diff --git a/libpixelflinger/codeflinger/ARMAssembler.h b/libpixelflinger/codeflinger/ARMAssembler.h index e0c7646cf..7178c65df 100644 --- a/libpixelflinger/codeflinger/ARMAssembler.h +++ b/libpixelflinger/codeflinger/ARMAssembler.h @@ -167,9 +167,6 @@ private: uint32_t* mPC; uint32_t* mPrologPC; int64_t mDuration; -#if defined(WITH_LIB_HARDWARE) - bool mQemuTracing; -#endif struct branch_target_t { inline branch_target_t() : label(0), pc(0) { } diff --git a/libpixelflinger/codeflinger/MIPS64Assembler.cpp b/libpixelflinger/codeflinger/MIPS64Assembler.cpp index 672040bc9..b9f31ff11 100644 --- a/libpixelflinger/codeflinger/MIPS64Assembler.cpp +++ b/libpixelflinger/codeflinger/MIPS64Assembler.cpp @@ -33,10 +33,6 @@ #include #include -#if defined(WITH_LIB_HARDWARE) -#include -#endif - #include #include "MIPS64Assembler.h" diff --git a/libpixelflinger/codeflinger/MIPSAssembler.cpp b/libpixelflinger/codeflinger/MIPSAssembler.cpp index 5497faeb0..ae06a1344 100644 --- a/libpixelflinger/codeflinger/MIPSAssembler.cpp +++ b/libpixelflinger/codeflinger/MIPSAssembler.cpp @@ -55,10 +55,6 @@ #include #include -#if defined(WITH_LIB_HARDWARE) -#include -#endif - #include #include "MIPSAssembler.h" @@ -1411,13 +1407,6 @@ int MIPSAssembler::generate(const char* name) const char * const format = "generated %s (%d ins) at [%p:%p] in %lld ns\n"; ALOGI(format, name, int(pc()-base()), base(), pc(), duration); -#if defined(WITH_LIB_HARDWARE) - if (__builtin_expect(mQemuTracing, 0)) { - int err = qemu_add_mapping(uintptr_t(base()), name); - mQemuTracing = (err >= 0); - } -#endif - char value[PROPERTY_VALUE_MAX]; value[0] = '\0'; diff --git a/libpixelflinger/codeflinger/MIPSAssembler.h b/libpixelflinger/codeflinger/MIPSAssembler.h index b53fefb34..c1178b6fe 100644 --- a/libpixelflinger/codeflinger/MIPSAssembler.h +++ b/libpixelflinger/codeflinger/MIPSAssembler.h @@ -410,9 +410,6 @@ protected: uint32_t* mPC; uint32_t* mPrologPC; int64_t mDuration; -#if defined(WITH_LIB_HARDWARE) - bool mQemuTracing; -#endif struct branch_target_t { inline branch_target_t() : label(0), pc(0) { }