1need to review ASTAT write behavior
2
3how to model RETE and IVG0 bit in IPEND ...
4
5model the loop buffer ?  this means no ifetches because they're cached.
6see page 4-26 in Blackfin PRM under hardware loops.
7
8handle DSPID at 0xffe05000
9
10CEC should handle multiple exceptions at same address.  would need
11exception processing to be delayed ?  at least needs a stack for
12the CEC to pop things off.
13
14R0 = [SP++]; gets traced as R0 = [P6++];
15
16merge dv-bfin_evt with dv-bfin_cec since the EVT regs are part of the CEC
17
18fix single stepping over debug assert instructions in hardware
19
20exception in IVG5 causes double fault ?
21
22SIC int forwarding doesn't accurately reflect the hardware.  what the sim
23does is:
24	- device generates an interrupt
25	- int is sent to SIC
26	- SIC logs it into its ISR
27	- so long as SIC's IMASK allows it, bits set in ISR generate
28	  an interrupt to the CEC
29	- no way to clear the SIC's ISR
30the way the hardware works is that the device monitors the interrupt level and
31the SIC's ISR bits are basically hardwired from each peripheral.  so when the
32device has its interrupt cleared, the bit in the SIC's ISR is automatically
33cleared as well.
34perhaps the only way to model this behavior in the sim is to have each device
35set up an event callback that sends out a port event: a level of 0 means the
36int has been ACKed and the SIC can clear its ISR while a level of 1 means the
37int is being generated still.  if the device is still generating an interrupt,
38it can reschedule itself again.
39
40insns that cause an interrupt don't seem to be processed at the right time.
41for example, setup a glue device that generates an interrupt upon right.
42when the store insn is executed, the interrupt is taken right away instead
43of being scheduled *after* the insn has finished executing.  difference is
44that RETI needs to point to the *next* insn and not the store insn.
45
46tests:
47	- check AN bits with Dreg subtraction
48		R0 = R1 - R2;
49	- check astat bits with vector add/sub +|+
50	- check acc with VIT_MAX and similiar insns
51