By default, only the registers of the cpu specified by pselect are printed. The -cpu flag may be used to override this.
The -w ,-g, -f, -df, -pr, -asr, -hpr, and -trap flags select which registers are printed. If none of these are given, pregs prints the windowed and global registers plus the pc, npc, tt, tl, gl, cwp, pstate, and hpstate registers.
The -w ,-g, -f, -df, -asr, -pr, -hpr, and -trap flags may be used in
any combination. The registers they output are as follows:
Flag | Register Set |
---|---|
-w | The windowed registers: i0-i7, o0-o7, l0-l7 |
-g | The global registers: g0-g7 |
-f | The single precision floating point registers: f0-f31 and fsr |
-df | The double precision floating point registers: d0-d62 and fsr |
-asr | ASR related registers: y, ccr, asi, tick, pc, fprs, pcr, pic, gsr, softint_set, softint_clr, softint, tick_cmpr, stick, and stick_cmpr |
-pr | Privileged registers: tpc, tnpc, tstate, tt, pr_tick, tba, pstate, tl, pil, cwp, cansave, canrestore, cleanwin, otherwin, wstate, and gl |
-hpr | Hyperprivileged registers: hpstate, htstate, hintp, htba, hver, and hstick_cmpr |
-trap | Trap related registers: tpc, tnpc, tstate, tt, pstate, tl, cwp, gl |
By default, the current cwp register, global level, and trap level are
used to access windowed registers, global registers, and trap
registers, respectively.
Flag | Behavior |
---|---|
-cwp window-pointer | Sets the register window used to access windowed registers |
-gl global-level | Sets the global level used to access global registers |
-tl trap-level | Sets the trap level used to access trap registers |