[AARCH64] Add support for new control bits CTR_EL0.DIC and CTR_EL0.IDC
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Wed, 25 Sep 2019 12:38:59 +0000 (12:38 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Wed, 25 Sep 2019 12:38:59 +0000 (12:38 +0000)
commit761e6bb9f7d2bd782d93e46baebade2eb1f7d16e
treec67de1fcd27ea5440bdfa1a5cdb272eacf721980
parent21f7f9980c078080189ca78e4da56f0c26736946
[AARCH64] Add support for new control bits CTR_EL0.DIC and CTR_EL0.IDC

The DCache clean & ICache invalidation requirements for instructions
to be data coherence are discoverable through new fields in CTR_EL0.
Let's support the two bits if they are enabled, the CPU core will
not execute the unnecessary DCache clean or Icache Invalidation
instructions.

2019-09-25  Shaokun Zhang  <zhangshaokun@hisilicon.com>

* config/aarch64/sync-cache.c (__aarch64_sync_cache_range): Add support for
CTR_EL0.IDC and CTR_EL0.DIC.

From-SVN: r276122
libgcc/ChangeLog
libgcc/config/aarch64/sync-cache.c