Fixed a few warnings in the PISA target.

This commit is contained in:
Todd Austin @ Agita Labs 2023-03-25 16:17:54 -04:00
parent e7f474fb7e
commit 7cb718cada
3 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
*.o *.o
.*.swp .*.swp
tests-alpha/results/
tests-pisa/results/
libexo/libexo.a libexo/libexo.a
sim-bpred sim-bpred
sim-cache sim-cache

View File

@ -3720,7 +3720,7 @@ ruu_dispatch(void)
half_t temp_half = 0; /* " ditto " */ half_t temp_half = 0; /* " ditto " */
word_t temp_word = 0; /* " ditto " */ word_t temp_word = 0; /* " ditto " */
#ifdef HOST_HAS_QWORD #ifdef HOST_HAS_QWORD
qword_t temp_qword = 0; /* " ditto " */ qword_t temp_qword = 0; (void)temp_qword; /* " ditto " */
#endif /* HOST_HAS_QWORD */ #endif /* HOST_HAS_QWORD */
enum md_fault_type fault; enum md_fault_type fault;
@ -4452,7 +4452,7 @@ sim_main(void)
half_t temp_half = 0; /* " ditto " */ half_t temp_half = 0; /* " ditto " */
word_t temp_word = 0; /* " ditto " */ word_t temp_word = 0; /* " ditto " */
#ifdef HOST_HAS_QWORD #ifdef HOST_HAS_QWORD
qword_t temp_qword = 0; /* " ditto " */ qword_t temp_qword = 0; (void)temp_qword; /* " ditto " */
#endif /* HOST_HAS_QWORD */ #endif /* HOST_HAS_QWORD */
enum md_fault_type fault; enum md_fault_type fault;

View File

@ -1811,7 +1811,7 @@ sys_syscall(struct regs_t *regs, /* registers to access */
/* copy target side I/O vector buffers to host memory */ /* copy target side I/O vector buffers to host memory */
for (i=0; i < /*iovcnt*/regs->regs_R[6]; i++) for (i=0; i < /*iovcnt*/regs->regs_R[6]; i++)
{ {
iov[i].iov_base = (char *)MD_SWAPW((unsigned)iov[i].iov_base); iov[i].iov_base = (char *)MD_SWAPW((unsigned long)iov[i].iov_base);
iov[i].iov_len = MD_SWAPW(iov[i].iov_len); iov[i].iov_len = MD_SWAPW(iov[i].iov_len);
if (iov[i].iov_base != NULL) if (iov[i].iov_base != NULL)
{ {