3b2: Coverity issue cleanup
This commit is contained in:
parent
0293d7f4af
commit
0a00d8066a
3 changed files with 9 additions and 2 deletions
|
@ -2037,7 +2037,7 @@ t_stat sim_instr(void)
|
||||||
R[NUM_PC] = cpu_effective_address(dst);
|
R[NUM_PC] = cpu_effective_address(dst);
|
||||||
continue;
|
continue;
|
||||||
case LLSW3:
|
case LLSW3:
|
||||||
result = cpu_read_op(src2) << (cpu_read_op(src1) & 0x1f);
|
result = (t_uint64)cpu_read_op(src2) << (cpu_read_op(src1) & 0x1f);
|
||||||
cpu_write_op(dst, (uint32)(result & WORD_MASK));
|
cpu_write_op(dst, (uint32)(result & WORD_MASK));
|
||||||
cpu_set_nz_flags((uint32)(result & WORD_MASK), dst);
|
cpu_set_nz_flags((uint32)(result & WORD_MASK), dst);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -518,7 +518,7 @@ void iu_write(uint32 pa, uint32 val, size_t size)
|
||||||
if ((iu_port_a.stat & STS_FFL) == 0) {
|
if ((iu_port_a.stat & STS_FFL) == 0) {
|
||||||
iu_port_a.rxbuf[iu_port_a.w_p] = (uint8) val;
|
iu_port_a.rxbuf[iu_port_a.w_p] = (uint8) val;
|
||||||
iu_port_a.w_p = (iu_port_a.w_p + 1) % IU_BUF_SIZE;
|
iu_port_a.w_p = (iu_port_a.w_p + 1) % IU_BUF_SIZE;
|
||||||
if (iu_port_a.w_p == iu_port_b.r_p) {
|
if (iu_port_a.w_p == iu_port_a.r_p) {
|
||||||
sim_debug(WRITE_MSG, &tto_a_dev,
|
sim_debug(WRITE_MSG, &tto_a_dev,
|
||||||
">>> FIFO FULL ON LOOPBACK THRA! <<<");
|
">>> FIFO FULL ON LOOPBACK THRA! <<<");
|
||||||
iu_port_a.stat |= STS_FFL;
|
iu_port_a.stat |= STS_FFL;
|
||||||
|
|
|
@ -788,12 +788,18 @@ void tod_update_delta()
|
||||||
switch(td->year) {
|
switch(td->year) {
|
||||||
case 1: /* Leap Year - 3 */
|
case 1: /* Leap Year - 3 */
|
||||||
tm.tm_year = 85;
|
tm.tm_year = 85;
|
||||||
|
break;
|
||||||
case 2: /* Leap Year - 2 */
|
case 2: /* Leap Year - 2 */
|
||||||
tm.tm_year = 86;
|
tm.tm_year = 86;
|
||||||
|
break;
|
||||||
case 4: /* Leap Year - 1 */
|
case 4: /* Leap Year - 1 */
|
||||||
tm.tm_year = 87;
|
tm.tm_year = 87;
|
||||||
|
break;
|
||||||
case 8: /* Leap Year */
|
case 8: /* Leap Year */
|
||||||
tm.tm_year = 88;
|
tm.tm_year = 88;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
tm.tm_isdst = 0;
|
tm.tm_isdst = 0;
|
||||||
ssec = mktime(&tm);
|
ssec = mktime(&tm);
|
||||||
|
@ -889,6 +895,7 @@ void tod_write(uint32 pa, uint32 val, size_t size)
|
||||||
break;
|
break;
|
||||||
case 0x34: /* Year */
|
case 0x34: /* Year */
|
||||||
td->year = (uint8) val;
|
td->year = (uint8) val;
|
||||||
|
break;
|
||||||
case 0x38:
|
case 0x38:
|
||||||
if (val & 1) {
|
if (val & 1) {
|
||||||
tod_update_delta();
|
tod_update_delta();
|
||||||
|
|
Loading…
Add table
Reference in a new issue