# fuchsia_cpu_filter_dict

Return a dictionary that contains CPU-specific keys and values.

This function returns a dictionary that only contains keys that match
a specific set of cpu names.

Examples:

      _cpu_map = {
        "arm64": { "is_arm64": True },
        "x64": { "is_x64": True },
      }

      fuchsia_cpu_filter_dict(_cpu_map, ["x64"])
        => { "is_x64": True }

      fuchsia_cpu_filter_dict(_cpu_map, ["arm64"])
        => { "is_arm64": True }

      fuchsia_cpu_filter_dict(_cpu_map, ["x64", "arm64"])
        => { "is_x64": True, "is_arm64": True }

      fuchsia_cpu_filter_dict(_cpu_map, ["riscv64"])
        => { }

## **PARAMETERS**

| Name | Description | Default |
|---|---|---|
| cpu_map | A dictionary mapping Fuchsia cpu names to { key -\> value } dictionaries. If the cpu name is listed in `valid_cpus`, then all entries this dictionary will be added to the result, otherwise they will be ignored. | - |
| valid_cpus | A list of Fuchsia cpu names used to filter cpu_map. | - |
| common | If not None, a dictionary whose items will be added unconditionally to the final result. | `None` |

**RETURNS**

A select() value whose dictionary has been built by filtering the content
of cpu_map with only content for cpu names in valid_cpus.