From 796086cd49f769a55bebcdd43d2d348672c87371 Mon Sep 17 00:00:00 2001 From: Stefan Mahr Date: Tue, 31 May 2011 09:33:01 +0200 Subject: mips: fixup fastdata fixup fastdata --- src/target/mips_ejtag.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/target/mips_ejtag.h') diff --git a/src/target/mips_ejtag.h b/src/target/mips_ejtag.h index a6ed95a5..399246c4 100644 --- a/src/target/mips_ejtag.h +++ b/src/target/mips_ejtag.h @@ -146,4 +146,10 @@ int mips_ejtag_init(struct mips_ejtag *ejtag_info); int mips_ejtag_config_step(struct mips_ejtag *ejtag_info, int enable_step); int mips_ejtag_read_debug(struct mips_ejtag *ejtag_info, uint32_t* debug_reg); +static __inline__ void mips_le_to_h_u32(jtag_callback_data_t arg) +{ + uint8_t *in = (uint8_t *)arg; + *((uint32_t *)arg) = le_to_h_u32(in); +} + #endif /* MIPS_EJTAG */ -- cgit v1.2.3