misc.c overriding patch (mainly for TI C5X and C6X) from Jim Crichton