diff options
author | Stefan Mahr <stefan.mahr@sphairon.com> | 2011-05-31 09:33:01 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-06-01 07:23:42 +0200 |
commit | 796086cd49f769a55bebcdd43d2d348672c87371 (patch) | |
tree | 6cff4fc04df89d5939092e523b6b6b9990e6fc11 /src/target/mips_ejtag.h | |
parent | 524d79ebe74e28d751c88e665aabac2ea4d04e5c (diff) | |
download | riscv-openocd-796086cd49f769a55bebcdd43d2d348672c87371.zip riscv-openocd-796086cd49f769a55bebcdd43d2d348672c87371.tar.gz riscv-openocd-796086cd49f769a55bebcdd43d2d348672c87371.tar.bz2 |
mips: fixup fastdata
fixup fastdata
Diffstat (limited to 'src/target/mips_ejtag.h')
-rw-r--r-- | src/target/mips_ejtag.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target/mips_ejtag.h b/src/target/mips_ejtag.h index a6ed95a..399246c 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 */ |