#asahi-dev · 2023-09-15 15:23
j`eyydalton: it is simple!#asahi-dev · 2023-09-15 15:23
ydaltonwell#asahi-dev · 2023-09-15 15:23
svenyeah#asahi-dev · 2023-09-15 15:23
svenx86 is much much worse :D#asahi-dev · 2023-09-15 15:23
ChaosPrincessid say its x86 that is the weirdo#asahi-dev · 2023-09-15 15:22
ydaltony u no be simple arm/arm64#asahi-dev · 2023-09-15 15:21
ydaltoncompared to x86 with their variable length instructions#asahi-dev · 2023-09-15 15:21
j`eyit's not like theyre just 'leftover' or something#asahi-dev · 2023-09-15 15:21
ydaltonyeah, i heard and saw arm64 instructions are 4 bytes wide#asahi-dev · 2023-09-15 15:21
svena bit of nitpicking: all aarch64 instructions are 32bits long, it's just that some of them operate on 32bit registers while others operate on 64bit registers#asahi-dev · 2023-09-15 15:21
j`eythe 32-bit registers are part of aarch64 too#asahi-dev · 2023-09-15 15:20
ydaltonbut you can still use the 32 bit registers #asahi-dev · 2023-09-15 15:20
ydaltonand apple silicon doesn't support the latter#asahi-dev · 2023-09-15 15:20
ChaosPrincesssomething like that, yes#asahi-dev · 2023-09-15 15:20
ydaltonis my understanding correct?#asahi-dev · 2023-09-15 15:20
ydaltonand arm64 32 bit code is completely different to regular arm code#asahi-dev · 2023-09-15 15:19
ydaltonbut you can still use the 32 bit wide registers#asahi-dev · 2023-09-15 15:19
ydaltonit doesn't support arm executables #asahi-dev · 2023-09-15 15:19
ChaosPrincessi'd even say 32 and 64 bit arm are different instruction sets, with 64 bit just being vaguely inspired by the 32 bit one#asahi-dev · 2023-09-15 15:19
ydaltoni think i get it now#asahi-dev · 2023-09-15 15:18
ChaosPrincessin case of x86, 64 bit instructions are just 32 bit ones, but with a REX prefix in front of them, in case of arm32/aarch64, the instruction sets are quite different, and #asahi-dev · 2023-09-15 15:18
ydaltoni was today years old when i realized the r registers are the w registers in aarch64#asahi-dev · 2023-09-15 15:17
ydaltonyeah, i've seen those r registers before#asahi-dev · 2023-09-15 15:17
_jannau__aarch32 has no w registers. it uses rX mnemonics since all registers are 32-bit wide#asahi-dev · 2023-09-15 15:16
ydaltonnicolas17: if i understand what it means, it's instructions that operate on 64 bit wide registers?#asahi-dev · 2023-09-15 15:15
_jannau__most aarch64 instructions can operate on x and w register (aliases)#asahi-dev · 2023-09-15 15:15
nicolas17I think you misunderstand what "64bit instructions" means :P#asahi-dev · 2023-09-15 15:13
ydaltonbut like if you don't have instructions to use them, do they really exist?#asahi-dev · 2023-09-15 15:07
ydaltoni think i understand#asahi-dev · 2023-09-15 14:58
nicolas17(iOS 17.0 RC does not include the new iPhones)#asahi-dev · 2023-09-15 14:58
nicolas17_jannau__: guess we have to wait for the software to be out to figure out the core codenames#asahi-dev · 2023-09-15 14:57
nicolas17ydalton: a hypothetical x86_64 CPU that doesn't support x86 (32-bit) instructions would still have eax, ax, and al/ah#asahi-dev · 2023-09-15 14:53
_jannau__nicolas17: on one hand possible, ~10% faster but almost 10% max perf core frequency, 20% faster GPU after updating from 5 to 6 GPU cores. But I doubt apple would have talked about wider decode/execution units in the presentation if the cpu core were identical#asahi-dev · 2023-09-15 14:44
j`eybut the m1 doesnt support the aarch32 ISA#asahi-dev · 2023-09-15 14:44
j`ey(and instructions that operatre on 32-bit quantities)#asahi-dev · 2023-09-15 14:44
j`eyrather: aarch64 architecture includes 32-bit registers#asahi-dev · 2023-09-15 14:42
j`eyit supports 32bit registers still#asahi-dev · 2023-09-15 14:36
ydaltonhi, i was reading up on aarch64 assembly, and it said the W registers are just the 32 bit half of the 64 bit of the X registers, similar to rax and eax in x86_64 assembly. i looked at an assembly file in m1n1 and noticed it used the W registers, but i thought apple silicon does not support 32 bit arm!#asahi-dev · 2023-09-15 14:03
_jannau__should prepare the initramfs hooks to copy kernel modules into a tmpfs for the live system#asahi-dev · 2023-09-15 14:00
j`eyyup#asahi-dev · 2023-09-15 14:00
ydaltoni figure it should work#asahi-dev · 2023-09-15 14:00
ydaltoncan you use the chainload script to chainload m1n1 with the bootargs, dtb, linux kernel and initramfs?#asahi-dev · 2023-09-15 13:58
ydaltonah i see it here#asahi-dev · 2023-09-15 13:58
_jannau__you can also append an initrd#asahi-dev · 2023-09-15 13:57
_jannau__yes, in that case you probably want to append boot args as well#asahi-dev · 2023-09-15 13:57
ydaltonah, i see on the wiki#asahi-dev · 2023-09-15 13:56
ydaltonright?#asahi-dev · 2023-09-15 13:56
ydaltonbut it could be a linux kernel if you really want it to be#asahi-dev · 2023-09-15 13:56
_jannau__s/u-boot/next stage payload (usually u-boot)/#asahi-dev · 2023-09-15 13:56
ydaltonah