tile kgdb: fix bug in copy to gdb regs, and optimize memset