Bug 434923

Summary: Add support for Hygon Dhyana processor
Product: [Developer tools] valgrind Reporter: Jinke Fan <fanjinke51>
Component: generalAssignee: Julian Seward <jseward>
Status: REPORTED ---    
Severity: normal CC: fanjinke51
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Patch

Description Jinke Fan 2021-03-25 09:54:35 UTC
SUMMARY
Add support to get caches info and hardware capabilities on Hygon Dhyana processor[1].

STEPS TO REPRODUCE
1. ./autogen.sh
2. ./configure
3. make;make install
4. ./coregrind/valgrind -d ls

OBSERVED RESULT
```
--14750:1: main Get hardware capabilities ...
--14750:1: cache CPU vendor ID not recognised (HygonGenuine)
--14750:1: cache Could not autodetect cache info
--------------------
--25601:1: main ... arch = X86, hwcaps = x86-mmxext-sse1-sse2-sse3
```

EXPECTED RESULT
```
--554:1:    main Get hardware capabilities ...
--554:1:   cache Autodetected cache info is sensible
--554:1:   cache Cache info:
--554:1:   cache   #levels = 3
--554:1:   cache   #caches = 4
--554:1:   cache      cache #0:
--554:1:   cache         kind = data
--554:1:   cache         level = 1
--554:1:   cache         size = 32768 bytes
--554:1:   cache         linesize = 64 bytes
--554:1:   cache         assoc = 8
--------------
--555:1:    main ... arch = X86, hwcaps = x86-mmxext-sse1-sse2-sse3-lzcnt
```

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 4.4.0


ADDITIONAL INFORMATION
[1]: https://git.kernel.org/torvalds/c/c9661c1e80b609cd038db7c908e061f0535804ef
Comment 1 Jinke Fan 2021-03-25 09:58:38 UTC
Created attachment 137048 [details]
Patch