Skip to content

Instantly share code, notes, and snippets.

# IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX
#
# WIP research. (This was edited to add more info after someone posted it to
# Hacker News. Click "Revisions" to see full changes.)
#
# Copyright (c) 2020 dougallj
# Based on Python port of VMX intrinsics plugin:
# Copyright (c) 2019 w4kfu - Synacktiv

Foreward

This document was originally written several years ago. At the time I was working as an execution core verification engineer at Arm. The following points are coloured heavily by working in and around the execution cores of various processors. Apply a pinch of salt; points contain varying degrees of opinion.

It is still my opinion that RISC-V could be much better designed; though I will also say that if I was building a 32 or 64-bit CPU today I'd likely implement the architecture to benefit from the existing tooling.

Mostly based upon the RISC-V ISA spec v2.0. Some updates have been made for v2.2

Original Foreword: Some Opinion

The RISC-V ISA has pursued minimalism to a fault. There is a large emphasis on minimizing instruction count, normalizing encoding, etc. This pursuit of minimalism has resulted in false orthogonalities (such as reusing the same instruction for branches, calls and returns) and a requirement for superfluous instructions which impacts code density both in terms of size and

@adukot
adukot / LinkIt Smart 7688 NetBSD evbmips WIP
Created July 27, 2016 17:53
LinkIt Smart 7688 NetBSD/evbmips WIP
Index: sys/arch/evbmips/conf/LINKITSMART
===================================================================
RCS file: sys/arch/evbmips/conf/LINKITSMART
diff -N sys/arch/evbmips/conf/LINKITSMART
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ sys/arch/evbmips/conf/LINKITSMART 27 Jul 2016 17:19:21 -0000
@@ -0,0 +1,253 @@
+# $NetBSD: ZYXELKX,v 1.6 2015/08/07 14:12:04 maxv Exp $
+
+include "arch/evbmips/conf/std.rasoc"