Search code examples
assemblyarmcpu-architecturespecificationsraspberry-pi4

What are the correct .cpu, .fpu Assembly entries for the Raspberry Pi 4


I want to learn ARM Assembly for the Raspberry Pi, I found out that the following versions of the Raspberry Pi are using the listed cpu-fpu version, could anyone please tell me:

  1. what the Raspberry Pi 4 is using as cpu-fpu (I guess cpu is cortex-a72)
  2. where to find the exact cpu fpu specifications (I googled for the official ARM specifications but I could not find the fpu in the docs)?

Rasperry Pi:

  • Zero
  • 1A+
  • 1B+

uses

  • cpu: arm1176jzf-s
  • fpu: vfp

the Raspberry Pi:

  • 2B

uses

  • cpu: cortex-a7
  • fpu: neon-vfpv4

and the Raspberry Pi:

  • 3B

uses

  • cpu: cortex-a53
  • fpu: neon-fp-armv8

Introduction to Computer Organization: ARM Assembly Language Using the Raspberry Pi see Table 9.1.4


Solution

  • After a more in depth search I found another source which answered my question. I combined the relevant entries in the following table.

    |---------------------|------------------|------------------|
    | Raspberry Pi        | .cpu             | .fpu             |
    |---------------------|------------------|------------------|
    | Zero                | arm1176jzf-s     | vfp              |
    | 1 A+                |                  |                  |
    | 1 B+                |                  |                  |
    |---------------------|------------------|------------------|
    | 2 B                 | cortex-a7        | neon-vfpv4       |
    |---------------------|------------------|------------------|
    | 3 B                 | cortex-a53       | neon-fp-armv8    |
    |---------------------|------------------|------------------|
    | 4 B                 | cortex-a72       | neon-fp-armv8    |
    |---------------------|------------------|------------------|
    

    Introduction to Computer Organization: ARM Assembly Language Using the Raspberry Pi - Robert G. Plantz - Table 9.1.4.

    fm4dd - GitHub Gists