This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] sh-sim loose ends


> 	* gencode.c (movt): Modifies R[n]; call 'L' macro.

That doesn't make sense, 'L' simulates the data read memory latency of an
SH[123].  movt doesn't incur such a latency.

> 	(trapa): Factor out duplicate variable 'imm' (same as 'i').

OK.  But I don't see why you need the cast to long.

> 	(sleep, trapa, ppi): Use SET_NIP to modify nip.

I don't see any need for this.  RAISE_EXCEPTION already clears
saved_state.asregs.insn_end , so that takes care of the
exceptions that might arise during sleep.
For trapa, that leaves just the possibility that we fail to miss a
loop bound that is set to somewhere inside a profiler trap; I think
you deserve whatever you get when you do that.
Similar for ppi; are you afrais that we fail to miss a loop bound
that is set to field_b of a ppi insn?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]