Missing PIE instructions in the TRM for ESP32-S3?

EmilenL
Posts: 15
Joined: Sun Oct 17, 2021 5:54 pm

Missing PIE instructions in the TRM for ESP32-S3?

Postby EmilenL » Sun Sep 03, 2023 11:00 pm

I'm currently writing code using the PIE in ESP32-S3, using the TRM as a reference.
I noticed there appears to be further instructions used in your DSP libs that aren't mentioned in the TRM.

Only in the file https://github.com/espressif/esp-dsp/bl ... es3.S#L126, I see e.g. the instructions mv.qr, ld.qr and st.qr which are not mentioned in the TRM. Can I use them in my code as well without any bad consequences? Are there any other undocumented instructions?

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: Missing PIE instructions in the TRM for ESP32-S3?

Postby ESP_Sprite » Mon Sep 04, 2023 1:07 am

I think the docs team didn't pick those up as PIE instructions as they're missing the "ee." prefix. Will poke them to see if they can be included. I'm decently sure these are an 'official' part of the PIE instructions, as their functionality seems pretty obvious and I don't see any other instruction that can be used to do those things.

EmilenL
Posts: 15
Joined: Sun Oct 17, 2021 5:54 pm

Re: Missing PIE instructions in the TRM for ESP32-S3?

Postby EmilenL » Mon Sep 04, 2023 11:12 am

Thanks for the quick reply!

The mv.qr instruction, which seems to copy the second register's content into the first register, should be equivalent to "ee.orq qa, qb, qb", since (x | x) = x. The other two seem to have no replacements though, since they seem to load and store using the address and an immediate offset, without updating the address register.

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: Missing PIE instructions in the TRM for ESP32-S3?

Postby ESP_Sprite » Wed Sep 13, 2023 8:12 am

Seems they missed it as the tooling we have automatically generates these instructions as a side effect of incorporating the Q registers. The next version of the TRM should document them.

Who is online

Users browsing this forum: No registered users and 11 guests