target-ppc: gdbstub: introduce avr_need_swap()