PDP11: Move history entry pointer initialization out of instruction loop.
This will be slightly more efficient for the normal case where history isn't being recorded.
This commit is contained in:
parent
66fb70b768
commit
0352e0fd7b
1 changed files with 1 additions and 2 deletions
|
@ -665,6 +665,7 @@ t_stat sim_instr (void)
|
||||||
int abortval, i;
|
int abortval, i;
|
||||||
volatile int32 trapea; /* used by setjmp */
|
volatile int32 trapea; /* used by setjmp */
|
||||||
t_stat reason;
|
t_stat reason;
|
||||||
|
InstHistory *hst_ent = NULL;
|
||||||
|
|
||||||
sim_vm_pc_value = &pdp11_pc_value;
|
sim_vm_pc_value = &pdp11_pc_value;
|
||||||
|
|
||||||
|
@ -745,7 +746,6 @@ while (reason == 0) {
|
||||||
int32 IR, srcspec, srcreg, dstspec, dstreg;
|
int32 IR, srcspec, srcreg, dstspec, dstreg;
|
||||||
int32 src, src2, dst, ea;
|
int32 src, src2, dst, ea;
|
||||||
int32 i, t, sign, oldrs, trapnum;
|
int32 i, t, sign, oldrs, trapnum;
|
||||||
InstHistory *hst_ent;
|
|
||||||
|
|
||||||
if (cpu_astop) {
|
if (cpu_astop) {
|
||||||
cpu_astop = 0;
|
cpu_astop = 0;
|
||||||
|
@ -902,7 +902,6 @@ while (reason == 0) {
|
||||||
if (hst_p >= hst_lnt)
|
if (hst_p >= hst_lnt)
|
||||||
hst_p = 0;
|
hst_p = 0;
|
||||||
}
|
}
|
||||||
else hst_ent = NULL;
|
|
||||||
PC = (PC + 2) & 0177777; /* incr PC, mod 65k */
|
PC = (PC + 2) & 0177777; /* incr PC, mod 65k */
|
||||||
switch ((IR >> 12) & 017) { /* decode IR<15:12> */
|
switch ((IR >> 12) & 017) { /* decode IR<15:12> */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue