Some M3 fixes.

Signed-off-by: John McCutchan <john@johnmccutchan.com>