tcg/tci: Restrict tci_write_reg16() to 64-bit hosts
commit5fa6ab7ecc54fe5f9bbd971496c78a5b014103b3
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 23 Jan 2021 09:41:07 +0000 (23 10:41 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 27 Jan 2021 16:15:40 +0000 (27 17:15 +0100)
tree013c0bf713cdb920e63f7b2834c6e5b972e9ee77
parent1a0019533514e83a2bbabc0dd50b3cfa2a099b98
tcg/tci: Restrict tci_write_reg16() to 64-bit hosts

Restrict tci_write_reg16() to 64-bit hosts to fix on 32-bit ones:

  [520/1115] Compiling C object libqemu-arm-linux-user.fa.p/tcg_tci.c.o
  FAILED: libqemu-arm-linux-user.fa.p/tcg_tci.c.o
  tcg/tci.c:132:1: error: 'tci_write_reg16' defined but not used [-Werror=unused-function]
   tci_write_reg16(tcg_target_ulong *regs, TCGReg index, uint16_t value)
   ^~~~~~~~~~~~~~~

Fixes: 2f160e0f979 ("tci: Add implementation for INDEX_op_ld16u_i64")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-Id: <20210123094107.2340222-1-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
tcg/tci.c