[PATCH 3/8] ppc/ppc405: Activate MMU logs

Cédric Le Goater posted 8 patches 4 years, 1 month ago
Maintainers: Daniel Henrique Barboza <danielhb413@gmail.com>, "Cédric Le Goater" <clg@kaod.org>, Greg Kurz <groug@kaod.org>, David Gibson <david@gibson.dropbear.id.au>
There is a newer version of this series
[PATCH 3/8] ppc/ppc405: Activate MMU logs
Posted by Cédric Le Goater 4 years, 1 month ago
There is no need to deactivate MMU logging at compile time.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
 target/ppc/mmu_common.c | 4 ++--
 target/ppc/mmu_helper.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/ppc/mmu_common.c b/target/ppc/mmu_common.c
index 4e278365ca55..c0d3d32fafaa 100644
--- a/target/ppc/mmu_common.c
+++ b/target/ppc/mmu_common.c
@@ -34,9 +34,9 @@
 #include "mmu-book3s-v3.h"
 #include "mmu-radix64.h"
 
-/* #define DEBUG_MMU */
+#define DEBUG_MMU
 /* #define DEBUG_BATS */
-/* #define DEBUG_SOFTWARE_TLB */
+#define DEBUG_SOFTWARE_TLB
 /* #define DUMP_PAGE_TABLES */
 /* #define FLUSH_ALL_TLBS */
 
diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c
index 2ec3d203a081..6788577f449f 100644
--- a/target/ppc/mmu_helper.c
+++ b/target/ppc/mmu_helper.c
@@ -37,7 +37,7 @@
 #include "exec/cpu_ldst.h"
 
 /* #define DEBUG_BATS */
-/* #define DEBUG_SOFTWARE_TLB */
+#define DEBUG_SOFTWARE_TLB
 /* #define DUMP_PAGE_TABLES */
 /* #define FLUSH_ALL_TLBS */
 
-- 
2.31.1


Re: [PATCH 3/8] ppc/ppc405: Activate MMU logs
Posted by Richard Henderson 4 years, 1 month ago
On 12/21/21 10:40 PM, Cédric Le Goater wrote:
> There is no need to deactivate MMU logging at compile time.
> 
> Signed-off-by: Cédric Le Goater<clg@kaod.org>
> ---
>   target/ppc/mmu_common.c | 4 ++--
>   target/ppc/mmu_helper.c | 2 +-
>   2 files changed, 3 insertions(+), 3 deletions(-)

There's also no need to use #defines.
You should just remove these and the ifdefs.


r~

Re: [PATCH 3/8] ppc/ppc405: Activate MMU logs
Posted by BALATON Zoltan 4 years, 1 month ago
On Thu, 23 Dec 2021, Richard Henderson wrote:
> On 12/21/21 10:40 PM, Cédric Le Goater wrote:
>> There is no need to deactivate MMU logging at compile time.
>> 
>> Signed-off-by: Cédric Le Goater<clg@kaod.org>
>> ---
>>   target/ppc/mmu_common.c | 4 ++--
>>   target/ppc/mmu_helper.c | 2 +-
>>   2 files changed, 3 insertions(+), 3 deletions(-)
>
> There's also no need to use #defines.
> You should just remove these and the ifdefs.

I thought the same unless these are disabled by default for performance 
reasons. MMU is already quite slow, would this make it even slower?

Regards,
BALATON Zoltan
Re: [PATCH 3/8] ppc/ppc405: Activate MMU logs
Posted by Richard Henderson 4 years, 1 month ago
On 12/24/21 4:57 AM, BALATON Zoltan wrote:
> On Thu, 23 Dec 2021, Richard Henderson wrote:
>> On 12/21/21 10:40 PM, Cédric Le Goater wrote:
>>> There is no need to deactivate MMU logging at compile time.
>>>
>>> Signed-off-by: Cédric Le Goater<clg@kaod.org>
>>> ---
>>>   target/ppc/mmu_common.c | 4 ++--
>>>   target/ppc/mmu_helper.c | 2 +-
>>>   2 files changed, 3 insertions(+), 3 deletions(-)
>>
>> There's also no need to use #defines.
>> You should just remove these and the ifdefs.
> 
> I thought the same unless these are disabled by default for performance reasons. MMU is 
> already quite slow, would this make it even slower?

I don't believe the difference will be measurable.


r~