bsp: Fix bug in the xilernel bsp tcl

This patch fixes the xilkernel_thread_demo app compilation error
when microblaze is configured with mmu(C_USE_MMU) greater than one.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
This commit is contained in:
Kedareswara rao Appana 2014-11-13 11:56:31 +05:30 committed by Suneel Garapati
parent c38b798468
commit ef064c430d
2 changed files with 16 additions and 4 deletions

View file

@ -553,10 +553,18 @@ proc generate {os_handle} {
set addrlists [get_mem_ranges -of_objects [get_cells $sw_proc_handle]]
set addrlist [list]
foreach addrist $addrlists {
set mem [xget_ip_mem_ranges $addrist]
set mc_base [get_property BASE_VALUE $mem]
set mc_high [get_property HIGH_VALUE $mem]
lappend addrlist $mc_base $mc_high
set ip_name [get_property IP_NAME [get_cells $addrist]]
if { $ip_name == "axi_emc" || $ip_name == "mig_7series" } {
set mem [lindex [get_mem_ranges $addrist] 0]
set mc_base [get_property BASE_VALUE $mem]
set mc_high [get_property HIGH_VALUE $mem]
lappend addrlist $mc_base $mc_high
} else {
set mem [hsm::utils::get_ip_mem_ranges $addrist]
set mc_base [get_property BASE_VALUE $mem]
set mc_high [get_property HIGH_VALUE $mem]
lappend addrlist $mc_base $mc_high
}
}
if { $dcachelink_handle != "" } {

View file

@ -174,3 +174,7 @@ Change Log for Xilkernel
2014-06-27
* Fixed the CR:802962 and the CR:803104 changes are made in the tcl file
2014-11-13
* Fixed CR:828759 Changes are made in the tcl file