diff options
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/ChangeLog | 5 | ||||
-rw-r--r-- | cpu/bpf.cpu | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/cpu/ChangeLog b/cpu/ChangeLog index 41d008f..66cf2da 100644 --- a/cpu/ChangeLog +++ b/cpu/ChangeLog @@ -1,3 +1,8 @@ +2019-07-19 Jose E. Marchesi <jose.marchesi@oracle.com> + + * bpf.cpu (h-gpr): when disassembling, use %r0 and %r6 instead of + %a and %ctx. + 2019-07-15 Jose E. Marchesi <jose.marchesi@oracle.com> * bpf.cpu (dlabs): New pmacro. diff --git a/cpu/bpf.cpu b/cpu/bpf.cpu index b8a3a92..aa01fbb 100644 --- a/cpu/bpf.cpu +++ b/cpu/bpf.cpu @@ -156,10 +156,10 @@ ;; XXX the frame pointer fp is read-only, so it should ;; go in a different hardware. (;; ABI names. Take priority when disassembling. - (a 0) (r1 1) (r2 2) (r3 3) (r4 4) (r5 5) (ctx 6) + (r0 0) (r1 1) (r2 2) (r3 3) (r4 4) (r5 5) (r6 6) (r7 7) (r8 8) (r9 9) (fp 10) ;; Additional names recognized when assembling. - (r0 0) (r6 6) (r10 10)))) + (a 0) (ctx 6) (r10 10)))) ;; The program counter. CGEN requires it, even if it is not visible ;; to eBPF programs. |