This patch gets rid of at least three deprecated functions or macros. I've tested it as well as I can, given that the current sh64 sim doesn't build. This compiles without warnings, and it tests out OK on an older branch that I have in which the sim does build.