summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8c3e35)
raw | patch | inline | side by side (parent: e8c3e35)
author | Suman Anna <s-anna@ti.com> | |
Wed, 4 Apr 2018 19:55:17 +0000 (14:55 -0500) | ||
committer | Sam Nelson <sam.nelson@ti.com> | |
Thu, 9 Aug 2018 20:01:32 +0000 (16:01 -0400) |
Moving forward new platforms does not capture the cpu memory map, so
remove this error check for AM65X only
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
remove this error check for AM65X only
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
packages/ti/trace/SysMin.xs | patch | blob | history |
index e24a9c8f31d208584c45c505e6601c24671d4dfc..248832774b0b840e3fa6396a1ec13e2c52c992a4 100644 (file)
/*
/*
- * Copyright (c) 2008-2013, Texas Instruments Incorporated
+ * Copyright (c) 2008-2018, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*/
function module$static$init(obj, params)
{
*/
function module$static$init(obj, params)
{
- var segname = Program.sectMap[".tracebuf"];
- if (segname == undefined) {
- this.$logError(".tracebuf section not found in Program.sectMap", this);
- }
- var segment = Program.cpu.memoryMap[segname];
- if (segment == undefined) {
- this.$logError(".tracebuf section found, but not in " +
- "Program.cpu.memoryMap", this);
- }
+ /* Skip this error checking for AM65X */
+ if (!Program.platformName.match(/^ti\.platforms\.cortexR:AM65X/)) {
+
+ var segname = Program.sectMap[".tracebuf"];
+ if (segname == undefined) {
+ this.$logError(".tracebuf section not found in Program.sectMap", this);
+ }
- if (params.bufSize > segment.len) {
- this.$logError("bufSize 0x" + Number(params.bufSize).toString(16) +
- " configured is too large, maximum bufSize allowed is " +
- "0x" + Number(segment.len).toString(16) + ". Decrement" +
- " the bufSize appropriately.", this);
+ var segment = Program.cpu.memoryMap[segname];
+ if (segment == undefined) {
+ this.$logError(".tracebuf section found, but not in " +
+ "Program.cpu.memoryMap", this);
+ }
+
+ if (params.bufSize > segment.len) {
+ this.$logError("bufSize 0x" + Number(params.bufSize).toString(16) +
+ " configured is too large, maximum bufSize allowed is " +
+ "0x" + Number(segment.len).toString(16) + ". Decrement" +
+ " the bufSize appropriately.", this);
+ }
}
if (params.bufSize - 8 < this.LINEBUFSIZE) {
}
if (params.bufSize - 8 < this.LINEBUFSIZE) {