diff options
author | Tim Newsome <tim@sifive.com> | 2017-07-06 15:03:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-06 15:03:12 -0700 |
commit | 29b62710f7b593932751b08b81fb3de957ac98ba (patch) | |
tree | e1143cc4c658f6ffce428612511502ea1bb45304 | |
parent | 31e5b53a468d8111b7d3dcdf96f2505e52ac3e84 (diff) | |
parent | 21e06e1d89cac1a946876caf28bb5ea2dbea353c (diff) | |
download | riscv-openocd-29b62710f7b593932751b08b81fb3de957ac98ba.zip riscv-openocd-29b62710f7b593932751b08b81fb3de957ac98ba.tar.gz riscv-openocd-29b62710f7b593932751b08b81fb3de957ac98ba.tar.bz2 |
Merge pull request #78 from riscv/build32
Add 32-bit build
-rw-r--r-- | .travis.yml | 13 | ||||
-rw-r--r-- | src/target/mips32_pracc.h | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 20f21de..3207995 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,18 @@ language: c dist: trusty +matrix: + include: + - os: linux + env: BUILD=x86_64-linux-gnu + + - os: linux + env: BUILD=i686-linux-gnu CFLAGS=-m32 + addons: + apt: + packages: + - gcc-multilib + script: - ./bootstrap && ./configure && make + - file src/openocd diff --git a/src/target/mips32_pracc.h b/src/target/mips32_pracc.h index b8b93c6..888c847 100644 --- a/src/target/mips32_pracc.h +++ b/src/target/mips32_pracc.h @@ -114,7 +114,7 @@ int mips32_cp0_read(struct mips_ejtag *ejtag_info, int mips32_cp0_write(struct mips_ejtag *ejtag_info, uint32_t val, uint32_t cp0_reg, uint32_t cp0_sel); -inline void pracc_swap16_array(struct mips_ejtag *ejtag_info, uint32_t *buf, int count) +static inline void pracc_swap16_array(struct mips_ejtag *ejtag_info, uint32_t *buf, int count) { if (ejtag_info->isa && ejtag_info->endianness) for (int i = 0; i != count; i++) |